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

refactor(connector): Add billing_country in klarna dynamic fields (#5373)

Swangi Kumari4838a86ebcb5
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index 8d19fe3ebc..6121d8e503 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -8569,6 +8569,40 @@ impl Default for super::settings::RequiredFields {
value: None,
}
),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "AU".to_string(),
+ "AT".to_string(),
+ "BE".to_string(),
+ "CA".to_string(),
+ "CZ".to_string(),
+ "DK".to_string(),
+ "FI".to_string(),
+ "FR".to_string(),
+ "DE".to_string(),
+ "GR".to_string(),
+ "IE".to_string(),
+ "IT".to_string(),
+ "NL".to_string(),
+ "NZ".to_string(),
+ "NO".to_string(),
+ "PL".to_string(),
+ "PT".to_string(),
+ "ES".to_string(),
+ "SE".to_string(),
+ "CH".to_string(),
+ "GB".to_string(),
+ "US".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
]),
}
)