feat(connector): [TRUSTPAY] implement Banktransfer PaymentMethod (#7575)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2025-03-25 19:55:01 +05:30
committed by GitHub
parent 4c72a1220c
commit dbcca0fbc0
46 changed files with 463 additions and 85 deletions

View File

@ -334,7 +334,10 @@ impl Connector {
| (Self::Moneris, _)
| (Self::Paypal, _)
| (Self::Payu, _)
| (Self::Trustpay, PaymentMethod::BankRedirect)
| (
Self::Trustpay,
PaymentMethod::BankRedirect | PaymentMethod::BankTransfer
)
| (Self::Iatapay, _)
| (Self::Volt, _)
| (Self::Itaubank, _)

View File

@ -1810,6 +1810,7 @@ pub enum PaymentMethodType {
RedPagos,
SamsungPay,
Sepa,
SepaBankTransfer,
Sofort,
Swish,
TouchNGo,
@ -1833,6 +1834,7 @@ pub enum PaymentMethodType {
#[serde(rename = "open_banking_pis")]
OpenBankingPIS,
DirectCarrierBilling,
InstantBankTransfer,
}
impl PaymentMethodType {

View File

@ -1841,6 +1841,7 @@ impl From<PaymentMethodType> for PaymentMethod {
PaymentMethodType::Multibanco => Self::BankTransfer,
PaymentMethodType::MandiriVa => Self::BankTransfer,
PaymentMethodType::Interac => Self::BankRedirect,
PaymentMethodType::InstantBankTransfer => Self::BankTransfer,
PaymentMethodType::Indomaret => Self::Voucher,
PaymentMethodType::OnlineBankingCzechRepublic => Self::BankRedirect,
PaymentMethodType::OnlineBankingFinland => Self::BankRedirect,
@ -1860,6 +1861,7 @@ impl From<PaymentMethodType> for PaymentMethod {
PaymentMethodType::PromptPay => Self::RealTimePayment,
PaymentMethodType::SamsungPay => Self::Wallet,
PaymentMethodType::Sepa => Self::BankDebit,
PaymentMethodType::SepaBankTransfer => Self::BankTransfer,
PaymentMethodType::Sofort => Self::BankRedirect,
PaymentMethodType::Swish => Self::BankRedirect,
PaymentMethodType::Trustly => Self::BankRedirect,