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(env): add custom hashmap deserializer for save_payment_method_on_session config (#10886)
AkshayaFoiger40d3edc84bd3
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.tomlindex f35343aad6..a20173d1dc 100644--- a/config/deployments/integration_test.toml+++ b/config/deployments/integration_test.toml@@ -216,7 +216,7 @@ payout_connector_list = "nomupay,stripe,wise"connectors_with_delayed_session_response = "trustpay,payme" # List of connectors which have delayed session response[save_payment_method_on_session.unsupported_payment_methods]-pay_later = ["klarna", "affirm"]+pay_later = "klarna,affirm"[zero_mandates.supported_payment_methods]bank_debit.ach = { connector_list = "gocardless,adyen,payload" }diff --git a/config/deployments/production.toml b/config/deployments/production.tomlindex ef7c9d405e..93fb142202 100644--- a/config/deployments/production.toml+++ b/config/deployments/production.toml@@ -185,7 +185,7 @@ netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prod.netceconnectors_with_delayed_session_response = "trustpay,payme" # List of connectors which have delayed session response[save_payment_method_on_session.unsupported_payment_methods]-pay_later = ["klarna", "affirm"]+pay_later = "klarna,affirm"[dummy_connector]enabled = false # Whether dummy connector is enabled or notdiff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.tomlindex ca84183e16..4ce214b018 100644--- a/config/deployments/sandbox.toml+++ b/config/deployments/sandbox.toml@@ -185,7 +185,7 @@ netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netceconnectors_with_delayed_session_response = "trustpay,payme" # List of connectors which have delayed session response[save_payment_method_on_session.unsupported_payment_methods]-pay_later = ["klarna", "affirm"]+pay_later = "klarna,affirm"[dummy_connector]enabled = true # Whether dummy connector is enabled or notdiff --git a/config/development.toml b/config/development.tomlindex 52e559afdd..4ddd39bd24 100644--- a/config/development.toml+++ b/config/development.toml@@ -1113,7 +1113,7 @@ discord_invite_url = "https://discord.gg/wJZ7DVW8mm"connectors_with_delayed_session_response = "trustpay,payme"[save_payment_method_on_session.unsupported_payment_methods]-pay_later = ["klarna", "affirm"]+pay_later = "klarna,affirm"[webhook_source_verification_call]connectors_with_webhook_source_verification_call = "paypal"diff --git a/config/docker_compose.toml b/config/docker_compose.tomlindex ddbce5bb32..98ea4f570e 100644--- a/config/docker_compose.toml+++ b/config/docker_compose.toml@@ -399,7 +399,7 @@ cards = [connectors_with_delayed_session_response = "trustpay,payme"[save_payment_method_on_session.unsupported_payment_methods]-pay_later = ["klarna", "affirm"]+pay_later = "klarna,affirm"[webhook_source_verification_call]connectors_with_webhook_source_verification_call = "paypal"diff --git a/crates/router/src/configs/settings.rs b/crates/router/src/configs/settings.rsindex 8129d70368..a720c4eb1b 100644--- a/crates/router/src/configs/settings.rs+++ b/crates/router/src/configs/settings.rs@@ -187,6 +187,7 @@ pub struct Settings<S: SecretState> {#[derive(Debug, Deserialize, Clone, Default)]pub struct OnSessionConfig {+ #[serde(default, deserialize_with = "deserialize_hashmap")]pub unsupported_payment_methods:HashMap<enums::PaymentMethod, HashSet<enums::PaymentMethodType>>,}