mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(core): add support for upi_intent and upi_qr (#9716)
Co-authored-by: Kanika Chaudhary <kanika.c@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -350,6 +350,7 @@ pub enum RealTimePaymentType {
|
||||
pub enum UpiType {
|
||||
UpiCollect,
|
||||
UpiIntent,
|
||||
UpiQr,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
||||
@ -87,6 +87,7 @@ impl From<enums::UpiType> for global_enums::PaymentMethodType {
|
||||
match value {
|
||||
enums::UpiType::UpiCollect => Self::UpiCollect,
|
||||
enums::UpiType::UpiIntent => Self::UpiIntent,
|
||||
enums::UpiType::UpiQr => Self::UpiQr,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,6 +120,7 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::Evoucher => Ok(dirval!(RewardType = Evoucher)),
|
||||
global_enums::PaymentMethodType::UpiCollect => Ok(dirval!(UpiType = UpiCollect)),
|
||||
global_enums::PaymentMethodType::UpiIntent => Ok(dirval!(UpiType = UpiIntent)),
|
||||
global_enums::PaymentMethodType::UpiQr => Ok(dirval!(UpiType = UpiQr)),
|
||||
global_enums::PaymentMethodType::SamsungPay => Ok(dirval!(WalletType = SamsungPay)),
|
||||
global_enums::PaymentMethodType::GoPay => Ok(dirval!(WalletType = GoPay)),
|
||||
global_enums::PaymentMethodType::KakaoPay => Ok(dirval!(WalletType = KakaoPay)),
|
||||
|
||||
Reference in New Issue
Block a user