Skip to content

Commit

Permalink
use profile_id from business_profile instead of payment_intent
Browse files Browse the repository at this point in the history
  • Loading branch information
hrithikesh026 committed Mar 12, 2024
1 parent e4046d3 commit 8887a03
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,12 +779,7 @@ impl<F: Clone + Send, Ctx: PaymentMethodRetrieve> Domain<F, api::PaymentsRequest
.into_report()
.attach_printable("No authentication_connector found from merchant_account.authentication_details")?
.to_string();
let profile_id = payment_data
.payment_intent
.profile_id
.as_ref()
.get_required_value("profile_id")
.attach_printable("'profile_id' not set in payment intent")?;
let profile_id = &business_profile.profile_id;
let authentication_connector_mca = helpers::get_merchant_connector_account(
state,
&business_profile.merchant_id,
Expand Down

0 comments on commit 8887a03

Please sign in to comment.