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

feat(pm_list): add dynamic fields for local bank transfer (#4349)

AkshayaFoiger60d244cbe860
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index 7ade016856..ddf42d0bb6 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -6526,14 +6526,26 @@ impl Default for super::settings::RequiredFields {
}
),
])}),
- (enums::PaymentMethodType::Multibanco,
+ (enums::PaymentMethodType::LocalBankTransfer,
ConnectorFields {
fields: HashMap::from([
(
- enums::Connector::Stripe,
+ enums::Connector::Zsl,
RequiredFieldFinal {
mandate: HashMap::new(),
- non_mandate: HashMap::new(),
+ non_mandate: HashMap::from([ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "CN".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )]),
common: HashMap::new(),
}
),