feat(connector): [Fiserv] add Refunds, Cancel and Wallets flow along with Unit Tests (#593)

Co-authored-by: samraat bansal <samraat.bansal@samraat.bansal-MacBookPro>
Co-authored-by: Nishant Joshi <nishant.joshi@juspay.in>
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
SamraatBansal
2023-03-09 17:00:10 +05:30
committed by GitHub
parent df8c8b5aa4
commit cd1c540906
8 changed files with 1196 additions and 351 deletions

View File

@ -64,7 +64,7 @@ pub async fn construct_refund_router_data<'a, F>(
// Does refund need shipping/billing address ?
address: PaymentAddress::default(),
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
connector_meta_data: None,
connector_meta_data: merchant_connector_account.metadata,
amount_captured: payment_intent.amount_captured,
request: types::RefundsData {
refund_id: refund.refund_id.clone(),