Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(router): add payment method Wallet check for decrypted wallet payment method token logic (#8744)

Shankar Singh Cbe002728a365
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index cc6f3384a2..d67019bfb0 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -3545,7 +3545,10 @@ where
F: Send + Clone + Sync,
D: OperationSessionGetters<F> + Send + Sync + Clone,
{
- if is_operation_confirm(operation) {
+ if is_operation_confirm(operation)
+ && payment_data.get_payment_attempt().payment_method
+ == Some(storage_enums::PaymentMethod::Wallet)
+ {
let wallet_type = payment_data
.get_payment_attempt()
.payment_method_type