feat(connector): [Novalnet] Add zero auth mandate (#6631)

This commit is contained in:
Debarati Ghatak
2025-01-10 14:46:37 +05:30
committed by GitHub
parent d850f17b87
commit 7b306a9015
10 changed files with 473 additions and 27 deletions

View File

@ -288,11 +288,16 @@ pub async fn construct_refund_router_data<'a, F>(
.payment_method
.get_required_value("payment_method_type")
.change_context(errors::ApiErrorResponse::InternalServerError)?;
let merchant_connector_account_id_or_connector_name = payment_attempt
.merchant_connector_id
.as_ref()
.map(|mca_id| mca_id.get_string_repr())
.unwrap_or(connector_id);
let webhook_url = Some(helpers::create_webhook_url(
&state.base_url.clone(),
merchant_account.get_id(),
connector_id,
merchant_connector_account_id_or_connector_name,
));
let test_mode: Option<bool> = merchant_connector_account.is_test_mode_on();