feat(connector): [Iatapay] Implement AccessTokenAuth, Authorize, PSync, Refund, RSync and testcases (#1034)

Co-authored-by: arvindpatel24 <arvind.patel@juspay.in>
Co-authored-by: Anji Reddy <anji.reddy@juspay.in>
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
Arvind Patel
2023-05-11 14:07:05 +05:30
committed by GitHub
parent cef8914372
commit a2527b5b2a
30 changed files with 1299 additions and 10 deletions

View File

@ -58,6 +58,12 @@ pub async fn construct_refund_router_data<'a, F>(
.payment_method
.get_required_value("payment_method_type")?;
let webhook_url = Some(helpers::create_webhook_url(
&state.conf.server.base_url.clone(),
&merchant_account.merchant_id,
&connector_id.to_string(),
));
let router_data = types::RouterData {
flow: PhantomData,
merchant_id: merchant_account.merchant_id.clone(),
@ -82,6 +88,7 @@ pub async fn construct_refund_router_data<'a, F>(
refund_amount: refund.refund_amount,
currency,
amount,
webhook_url,
connector_metadata: payment_attempt.connector_metadata.clone(),
reason: refund.refund_reason.clone(),
connector_refund_id: refund.connector_refund_id.clone(),