mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(connector): [ACI] Implement Interac Online Bank Redirect (#1108)
This commit is contained in:
@ -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(),
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user