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 required fields for afterpay clearpay (#4858)
chikke srujanba0a1e95b72c
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.tomlindex 138fef0cdf..0d40e81c4a 100644--- a/crates/connector_configs/toml/development.toml+++ b/crates/connector_configs/toml/development.toml@@ -127,8 +127,6 @@ merchant_secret="Source verification key"payment_method_type = "eps"[[adyen.bank_redirect]]payment_method_type = "blik"-[[adyen.bank_redirect]]- payment_method_type = "przelewy24"[[adyen.bank_redirect]]payment_method_type = "trustly"[[adyen.bank_redirect]]diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.tomlindex 7236863745..a71933870a 100644--- a/crates/connector_configs/toml/sandbox.toml+++ b/crates/connector_configs/toml/sandbox.toml@@ -127,8 +127,6 @@ merchant_secret="Source verification key"payment_method_type = "eps"[[adyen.bank_redirect]]payment_method_type = "blik"-[[adyen.bank_redirect]]- payment_method_type = "przelewy24"[[adyen.bank_redirect]]payment_method_type = "trustly"[[adyen.bank_redirect]]diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rsindex c989e4c04c..7177488cb3 100644--- a/crates/router/src/configs/defaults.rs+++ b/crates/router/src/configs/defaults.rs@@ -8110,6 +8110,100 @@ impl Default for super::settings::RequiredFields {]),common : HashMap::new(),}+ ),+ (+ enums::Connector::Adyen,+ RequiredFieldFinal {+ mandate : HashMap::new(),+ non_mandate: HashMap::from([+ (+ "billing.email".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.email".to_string(),+ display_name: "email".to_string(),+ field_type: enums::FieldType::UserEmailAddress,+ value: None,+ }+ ),+ (+ "billing.address.first_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.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: "payment_method_data.billing.address.last_name".to_string(),+ display_name: "billing_last_name".to_string(),+ field_type: enums::FieldType::UserBillingName,+ value: None,+ }+ ),+ (+ "billing.address.line1".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.address.line1".to_string(),+ display_name: "line1".to_string(),+ field_type: enums::FieldType::UserAddressLine1,+ value: None,+ }+ ),+ (+ "billing.address.line2".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.address.line2".to_string(),+ display_name: "line2".to_string(),+ field_type: enums::FieldType::UserAddressLine2,+ value: None,+ }+ ),+ (+ "billing.address.city".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.address.city".to_string(),+ display_name: "city".to_string(),+ field_type: enums::FieldType::UserAddressCity,+ value: None,+ }+ ),+ (+ "billing.address.zip".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.address.zip".to_string(),+ display_name: "zip".to_string(),+ field_type: enums::FieldType::UserAddressPincode,+ 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![+ "GB".to_string(),+ ]+ },+ value: None,+ }+ ),+ (+ "billing.address.state".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.billing.address.state".to_string(),+ display_name: "state".to_string(),+ field_type: enums::FieldType::UserAddressState,+ value: None,+ }+ ),+ ]),+ common : HashMap::new(),+ })]),},