fix(payments): update preprocessing steps and handle session token in payment flow (#9947)

This commit is contained in:
Ayush Anand
2025-10-27 11:50:04 +05:30
committed by GitHub
parent faed8d352c
commit 1c037fc717
7 changed files with 72 additions and 72 deletions

View File

@ -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])
}