feat(core): add Mobile Payment (Direct Carrier Billing) as a payment method (#6196)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2024-11-14 01:19:59 +05:30
committed by GitHub
parent 600cf44684
commit d0a041c361
94 changed files with 1111 additions and 310 deletions

View File

@ -68,7 +68,7 @@ pub enum RoutableConnectors {
Cybersource,
Datatrans,
Deutschebank,
// Digitalvirgo, template code for future usage
Digitalvirgo,
Dlocal,
Ebanx,
Fiserv,

View File

@ -1469,6 +1469,8 @@ pub enum PaymentExperience {
InvokePaymentApp,
/// Contains the data for displaying wait screen
DisplayWaitScreen,
/// Represents that otp needs to be collect and contains if consent is required
CollectOtp,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, strum::Display)]
@ -1597,6 +1599,7 @@ pub enum PaymentMethodType {
Mifinity,
#[serde(rename = "open_banking_pis")]
OpenBankingPIS,
DirectCarrierBilling,
}
impl masking::SerializableSecret for PaymentMethodType {}
@ -1637,6 +1640,7 @@ pub enum PaymentMethod {
Voucher,
GiftCard,
OpenBanking,
MobilePayment,
}
/// The type of the payment that differentiates between normal and various types of mandate payments. Use 'setup_mandate' in case of zero auth flow.

View File

@ -1887,6 +1887,7 @@ impl From<PaymentMethodType> for PaymentMethod {
PaymentMethodType::Seicomart => Self::Voucher,
PaymentMethodType::PayEasy => Self::Voucher,
PaymentMethodType::OpenBankingPIS => Self::OpenBanking,
PaymentMethodType::DirectCarrierBilling => Self::MobilePayment,
}
}
}