Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(connector): [ACI] Implement Interac Online Bank Redirect (#1108)
Sakil Mostak0177f1d1b90b
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex c2407e1257..b4dcb7acc5 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -630,6 +630,13 @@ pub enum BankRedirectData {#[schema(value_type = BankNames, example = "abn_amro")]bank_name: api_enums::BankNames,},+ Interac {+ /// The country for bank payment+ #[schema(value_type = CountryAlpha2, example = "US")]+ country: api_enums::CountryAlpha2,++ email: Email,+ },OnlineBankingCzechRepublic {// Issuer banksissuer: api_enums::BankNames,diff --git a/crates/router/src/connector/aci/transformers.rs b/crates/router/src/connector/aci/transformers.rsindex dd97e5214f..62b25c343e 100644--- a/crates/router/src/connector/aci/transformers.rs+++ b/crates/router/src/connector/aci/transformers.rs@@ -80,7 +80,7 @@ pub struct BankRedirectionPMData {}#[derive(Debug, Clone, Serialize, Deserialize)]-#[serde(rename_all = "UPPERCASE")]+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]pub enum PaymentBrand {Eps,Ideal,@@ -198,6 +198,18 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for AciPaymentsRequest {bank_account_bic: None,bank_account_iban: None,customer_email: Some(email.to_owned()),++ shopper_result_url: item.request.router_return_url.clone(),+ }))+ }+ api_models::payments::BankRedirectData::Interac { email, country } => {+ PaymentDetails::BankRedirect(Box::new(BankRedirectionPMData {+ payment_brand: PaymentBrand::InteracOnline,+ bank_account_country: Some(*country),+ bank_account_bank_name: None,+ bank_account_bic: None,+ bank_account_iban: None,+ customer_email: Some(email.to_owned()),shopper_result_url: item.request.router_return_url.clone(),}))}