Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarSinghC committed Jan 2, 2025
1 parent 981057e commit 07cccb9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/router/src/core/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6565,12 +6565,11 @@ pub async fn payment_external_authentication(
payment_connector_name,
));

let merchant_connector_account_id = payment_attempt
.merchant_connector_id
.clone()
let merchant_connector_account_id = merchant_connector_account
.get_mca_id()
.get_required_value("merchant_connector_id")
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Merchant connector id is not present in payment_attempt")?;
.attach_printable("Failed to fetch merchant connector id")?;

let webhook_url =
helpers::create_webhook_url(&state.base_url, merchant_id, &merchant_connector_account_id);
Expand Down

0 comments on commit 07cccb9

Please sign in to comment.