mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
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:
@ -68,7 +68,7 @@ pub enum RoutableConnectors {
|
||||
Cybersource,
|
||||
Datatrans,
|
||||
Deutschebank,
|
||||
// Digitalvirgo, template code for future usage
|
||||
Digitalvirgo,
|
||||
Dlocal,
|
||||
Ebanx,
|
||||
Fiserv,
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user