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 required field for open_banking_uk for Adyen and Volt Connector (#3032)

Swangi Kumari9d935332193d
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index f9bfcae1ca..db29e81800 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -4106,6 +4106,58 @@ impl Default for super::settings::RequiredFields {
(
enums::PaymentMethod::BankRedirect,
PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::OpenBankingUk,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Volt,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap:: from([
+ (
+ "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
(
enums::PaymentMethodType::Przelewy24,
ConnectorFields {