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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(payouts): deserialize google pay decrypted wallet in vault (#15313)
nithin-juspayff2347bb3003
diff --git a/crates/router/src/core/payment_methods/vault.rs b/crates/router/src/core/payment_methods/vault.rsindex 61f360e482..e602f4d82c 100644--- a/crates/router/src/core/payment_methods/vault.rs+++ b/crates/router/src/core/payment_methods/vault.rs@@ -726,6 +726,20 @@ impl Vaultable for api::WalletPayout {_ => Err(errors::VaultError::ResponseDeserializationFailed)?,}}+ PaymentMethodType::GooglePay => {+ match (value1.dpan, value1.expiry_month, value1.expiry_year) {+ (Some(dpan), Some(expiry_month), Some(expiry_year)) => {+ Self::GooglePayDecrypt(api_models::payouts::GooglePayDecrypt {+ application_primary_account_number: dpan,+ expiry_month,+ expiry_year,+ card_holder_name: value1.card_holder_name,+ card_network: value2.card_network,+ })+ }+ _ => Err(errors::VaultError::ResponseDeserializationFailed)?,+ }+ }PaymentMethodType::Mifinity => Self::Mifinity(api_models::payouts::Mifinity {destination_account: value1.wallet_id