Skip to content

Commit

Permalink
fix(pm_auth): Fixed deserialize logic in pm_auth core (#5615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak1799 authored Aug 14, 2024
1 parent 2249010 commit f66b09f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/router/src/core/pm_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ async fn store_bank_details_in_payment_methods(
> = HashMap::new();

for pm in payment_methods {
if pm.payment_method == Some(enums::PaymentMethod::BankDebit) {
if pm.payment_method == Some(enums::PaymentMethod::BankDebit)
&& pm.payment_method_data.is_some()
{
let bank_details_pm_data = crypto_operation::<serde_json::Value, masking::WithType>(
&(&state).into(),
type_name!(storage::PaymentMethod),
Expand Down

0 comments on commit f66b09f

Please # to comment.