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(connector): [Adyen]add configs for afterpay adyen (#4885)
chikke srujana8b57eaf2318
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.tomlindex 8d76771f89..3248021578 100644--- a/config/deployments/integration_test.toml+++ b/config/deployments/integration_test.toml@@ -170,7 +170,7 @@ sofort = { country = "ES,GB,SE,AT,NL,DE,CH,BE,FR,FI,IT,PL", currency = "EUR" }[pm_filters.adyen]ach = { country = "US", currency = "USD" }affirm = { country = "US", currency = "USD" }-afterpay_clearpay = { country = "AU,NZ,ES,GB,FR,IT,CA,US", currency = "GBP" }+afterpay_clearpay = { country = "US,CA,GB,AU,NZ", currency = "GBP,AUD,NZD,CAD,USD" }alfamart = { country = "ID", currency = "IDR" }ali_pay = { country = "AU,JP,HK,SG,MY,TH,ES,GB,SE,NO,AT,NL,DE,CY,CH,BE,FR,DK,FI,RO,MT,SI,GR,PT,IE,IT,CA,US", currency = "USD,EUR,GBP,JPY,AUD,SGD,CHF,SEK,NOK,NZD,THB,HKD,CAD" }ali_pay_hk = { country = "HK", currency = "HKD" }diff --git a/config/deployments/production.toml b/config/deployments/production.tomlindex 65f8d87215..0e3ebd1c1f 100644--- a/config/deployments/production.toml+++ b/config/deployments/production.toml@@ -182,7 +182,7 @@ we_chat_pay = { country = "AU,NZ,CN,JP,HK,SG,ES,GB,SE,NO,AT,NL,DE,CY,CH,BE,FR,DK[pm_filters.adyen]ach = { country = "US", currency = "USD" }affirm = { country = "US", currency = "USD" }-afterpay_clearpay = { country = "AU,CA,ES,FR,IT,NZ,GB,US", currency = "USD,AUD,CAD,NZD,GBP" }+afterpay_clearpay = { country = "AU,CA,NZ,GB,US", currency = "USD,AUD,CAD,NZD,GBP" }alfamart = { country = "ID", currency = "IDR" }ali_pay = { country = "AU,JP,HK,SG,MY,TH,ES,GB,SE,NO,AT,NL,DE,CY,CH,BE,FR,DK,FI,RO,MT,SI,GR,PT,IE,IT,CA,US", currency = "USD,EUR,GBP,JPY,AUD,SGD,CHF,SEK,NOK,NZD,THB,HKD,CAD" }ali_pay_hk = { country = "HK", currency = "HKD" }diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.tomlindex 94f6d4b343..28ac1dca02 100644--- a/config/deployments/sandbox.toml+++ b/config/deployments/sandbox.toml@@ -185,7 +185,7 @@ we_chat_pay = { country = "AU,NZ,CN,JP,HK,SG,ES,GB,SE,NO,AT,NL,DE,CY,CH,BE,FR,DK[pm_filters.adyen]ach = { country = "US", currency = "USD" }affirm = { country = "US", currency = "USD" }-afterpay_clearpay = { country = "AU,NZ,ES,GB,FR,IT,CA,US", currency = "GBP" }+afterpay_clearpay = { country = "US,CA,GB,AU,NZ", currency = "GBP,AUD,NZD,CAD,USD" }alfamart = { country = "ID", currency = "IDR" }ali_pay = { country = "AU,JP,HK,SG,MY,TH,ES,GB,SE,NO,AT,NL,DE,CY,CH,BE,FR,DK,FI,RO,MT,SI,GR,PT,IE,IT,CA,US", currency = "USD,EUR,GBP,JPY,AUD,SGD,CHF,SEK,NOK,NZD,THB,HKD,CAD" }ali_pay_hk = { country = "HK", currency = "HKD" }diff --git a/config/development.toml b/config/development.tomlindex 25fe55e605..e9d84395e6 100644--- a/config/development.toml+++ b/config/development.toml@@ -307,7 +307,7 @@ apple_pay = { country = "AU,CN,HK,JP,MO,MY,NZ,SG,TW,AM,AT,AZ,BY,BE,BG,HR,CY,CZ,Dpaypal = { currency = "AUD,BRL,CAD,CZK,DKK,EUR,HKD,HUF,INR,JPY,MYR,MXN,NZD,NOK,PHP,PLN,RUB,GBP,SGD,SEK,CHF,THB,USD" }klarna = { country = "AT,BE,DK,FI,FR,DE,IE,IT,NL,NO,ES,SE,GB,US,CA", currency = "USD,GBP,EUR,CHF,DKK,SEK,NOK,AUD,PLN,CAD" }affirm = { country = "US", currency = "USD" }-afterpay_clearpay = { country = "US,CA,GB,AU,NZ,FR,ES", currency = "GBP" }+afterpay_clearpay = { country = "US,CA,GB,AU,NZ", currency = "GBP,AUD,NZD,CAD,USD" }giropay = { country = "DE", currency = "EUR" }eps = { country = "AT", currency = "EUR" }sofort = { country = "ES,GB,SE,AT,NL,DE,CH,BE,FR,FI,IT,PL", currency = "EUR" }diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rsindex 2c02dddaab..6f1ce4458e 100644--- a/crates/router/src/configs/defaults.rs+++ b/crates/router/src/configs/defaults.rs@@ -8187,6 +8187,10 @@ impl Default for super::settings::RequiredFields {field_type: enums::FieldType::UserAddressCountry{options: vec!["GB".to_string(),+ "AU".to_string(),+ "CA".to_string(),+ "US".to_string(),+ "NZ".to_string(),]},value: None,