From d419f60ccb2696466b9fd93f379eb479a8fd90ef Mon Sep 17 00:00:00 2001 From: DEEPANSHU BANSAL Date: Tue, 10 Oct 2023 18:24:14 +0530 Subject: [PATCH] chore: [GOCARDLESS] env changes for becs and sepa mandates --- config/config.example.toml | 2 ++ config/development.toml | 2 ++ config/docker_compose.toml | 2 ++ crates/router/src/connector/gocardless/transformers.rs | 2 +- loadtest/config/development.toml | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/config.example.toml b/config/config.example.toml index b69519b6ac4a..e827beff8cc2 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -350,6 +350,8 @@ card.credit = {connector_list = "stripe,adyen"} # Mandate supported payment wallet.paypal = {connector_list = "adyen"} # Mandate supported payment method type and connector for wallets pay_later.klarna = {connector_list = "adyen"} # Mandate supported payment method type and connector for pay_later bank_debit.ach = { connector_list = "gocardless"} # Mandate supported payment method type and connector for bank_debit +bank_debit.becs = { connector_list = "gocardless"} # Mandate supported payment method type and connector for bank_debit +bank_debit.sepa = { connector_list = "gocardless"} # Mandate supported payment method type and connector for bank_debit # Required fields info used while listing the payment_method_data [required_fields.pay_later] # payment_method = "pay_later" diff --git a/config/development.toml b/config/development.toml index 75a5a89ca9dc..91451a69c161 100644 --- a/config/development.toml +++ b/config/development.toml @@ -419,6 +419,8 @@ wallet.paypal = { connector_list = "adyen" } card.credit = { connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon" } card.debit = { connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon" } bank_debit.ach = { connector_list = "gocardless"} +bank_debit.becs = { connector_list = "gocardless"} +bank_debit.sepa = { connector_list = "gocardless"} [connector_request_reference_id_config] merchant_ids_send_payment_id_as_connector_request_id = [] diff --git a/config/docker_compose.toml b/config/docker_compose.toml index b1483327ee0c..b8525e9b5f53 100644 --- a/config/docker_compose.toml +++ b/config/docker_compose.toml @@ -297,6 +297,8 @@ wallet.paypal = {connector_list = "adyen"} card.credit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon"} card.debit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon"} bank_debit.ach = { connector_list = "gocardless"} +bank_debit.becs = { connector_list = "gocardless"} +bank_debit.sepa = { connector_list = "gocardless"} [connector_customer] connector_list = "gocardless,stax,stripe" diff --git a/crates/router/src/connector/gocardless/transformers.rs b/crates/router/src/connector/gocardless/transformers.rs index 8187c5ccc49d..c5322ccf7fc6 100644 --- a/crates/router/src/connector/gocardless/transformers.rs +++ b/crates/router/src/connector/gocardless/transformers.rs @@ -582,7 +582,7 @@ impl mandate_reference, network_txn_id: None, }), - status: enums::AttemptStatus::Pending, + status: enums::AttemptStatus::Charged, ..item.data }) } diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml index db6ed0850c8d..380373049689 100644 --- a/loadtest/config/development.toml +++ b/loadtest/config/development.toml @@ -228,3 +228,5 @@ wallet.paypal = {connector_list = "adyen"} card.credit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon"} card.debit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon"} bank_debit.ach = { connector_list = "gocardless"} +bank_debit.becs = { connector_list = "gocardless"} +bank_debit.sepa = { connector_list = "gocardless"}