diff --git a/config/config.example.toml b/config/config.example.toml index dda768bec3c..8cdb9319931 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -434,6 +434,7 @@ mini_stop = { country = "JP", currency = "JPY" } family_mart = { country = "JP", currency = "JPY" } seicomart = { country = "JP", currency = "JPY" } pay_easy = { country = "JP", currency = "JPY" } +boleto = { country = "BR", currency = "BRL" } [pm_filters.volt] open_banking_uk = {country = "DE,GB", currency = "EUR,GBP"} diff --git a/config/development.toml b/config/development.toml index 1075452fbd6..95006ae475d 100644 --- a/config/development.toml +++ b/config/development.toml @@ -357,6 +357,7 @@ family_mart = {country = "JP", currency = "JPY"} seicomart = {country = "JP", currency = "JPY"} pay_easy = {country = "JP", currency = "JPY"} pix = { country = "BR", currency = "BRL" } +boleto = { country = "BR", currency = "BRL" } [pm_filters.braintree] paypal = { currency = "AUD,BRL,CAD,CNY,CZK,DKK,EUR,HKD,HUF,ILS,JPY,MYR,MXN,TWD,NZD,NOK,PHP,PLN,GBP,RUB,SGD,SEK,CHF,THB,USD" } diff --git a/config/docker_compose.toml b/config/docker_compose.toml index 244e9085513..ab8c2c8e414 100644 --- a/config/docker_compose.toml +++ b/config/docker_compose.toml @@ -299,6 +299,7 @@ mini_stop = {country = "JP", currency = "JPY"} family_mart = {country = "JP", currency = "JPY"} seicomart = {country = "JP", currency = "JPY"} pay_easy = {country = "JP", currency = "JPY"} +boleto = { country = "BR", currency = "BRL" } [pm_filters.volt] open_banking_uk = {country = "DE,GB", currency = "EUR,GBP"} diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index 71cd61ffa80..55d94d0c74c 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -6143,6 +6143,44 @@ impl Default for super::settings::RequiredFields { ), ])), ), + ( + enums::PaymentMethod::Voucher, + PaymentMethodType(HashMap::from([ + ( + enums::PaymentMethodType::Boleto, + ConnectorFields { + fields: HashMap::from([ + ( + enums::Connector::Adyen, + RequiredFieldFinal { + mandate : HashMap::new(), + non_mandate : HashMap::from([ + ( + "payment_method_data.voucher.boleto.social_security_number".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.voucher.boleto.social_security_number".to_string(), + display_name: "social_security_number".to_string(), + field_type: enums::FieldType::Text, + value: None, + } + ), + ]), + common : HashMap::new(), + } + ), + ( + enums::Connector::Zen, + RequiredFieldFinal { + mandate: HashMap::new(), + non_mandate: HashMap::new(), + common: HashMap::new(), + } + ) + ]), + }, + ), + ])), + ), ( enums::PaymentMethod::BankDebit, PaymentMethodType(HashMap::from([( diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml index c5232378615..ddcba31cd23 100644 --- a/loadtest/config/development.toml +++ b/loadtest/config/development.toml @@ -189,6 +189,9 @@ cards = [ [pm_filters.volt] open_banking_uk = {country = "DE,GB", currency = "EUR,GBP"} +[pm_filters.adyen] +boleto = { country = "BR", currency = "BRL" } + [pm_filters.zen] credit = { not_available_flows = { capture_method = "manual" } } debit = { not_available_flows = { capture_method = "manual" } }