mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
fix(payments): update preprocessing steps and handle session token in payment flow (#9947)
This commit is contained in:
@ -426,7 +426,10 @@ impl Connector {
|
||||
)
|
||||
}
|
||||
pub fn requires_order_creation_before_payment(self, payment_method: PaymentMethod) -> bool {
|
||||
matches!((self, payment_method), (Self::Razorpay, PaymentMethod::Upi))
|
||||
matches!(
|
||||
(self, payment_method),
|
||||
(Self::Razorpay, PaymentMethod::Upi) | (Self::Airwallex, PaymentMethod::Card)
|
||||
)
|
||||
}
|
||||
pub fn supports_file_storage_module(self) -> bool {
|
||||
matches!(self, Self::Stripe | Self::Checkout | Self::Worldpayvantiv)
|
||||
@ -575,10 +578,6 @@ impl Connector {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_pre_processing_required_before_authorize(self) -> bool {
|
||||
matches!(self, Self::Airwallex)
|
||||
}
|
||||
|
||||
pub fn get_payment_methods_supporting_extended_authorization(self) -> HashSet<PaymentMethod> {
|
||||
HashSet::from([PaymentMethod::Card])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user