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): check payment_method_data before the decryption flow (#9521)

Shankar Singh C36b057911d45
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index 40c003f059..d7eed1a89b 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -3771,6 +3771,7 @@ where
if is_operation_confirm(operation)
&& payment_data.get_payment_attempt().payment_method
== Some(storage_enums::PaymentMethod::Wallet)
+ && payment_data.get_payment_method_data().is_some()
{
let wallet_type = payment_data
.get_payment_attempt()