Skip to content

Commit 3efce90

Browse files
authored
feat(connector): [Gocardless] add support for Ach, Sepa, Becs payment methods (#2180)
1 parent 0a65e8f commit 3efce90

File tree

18 files changed

+1308
-280
lines changed

18 files changed

+1308
-280
lines changed

config/config.example.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ mollie = {long_lived_token = false, payment_method = "card"}
312312
stax = { long_lived_token = true, payment_method = "card,bank_debit" }
313313
square = {long_lived_token = false, payment_method = "card"}
314314
braintree = { long_lived_token = false, payment_method = "card" }
315+
gocardless = {long_lived_token = true, payment_method = "bank_debit"}
315316

316317
[temp_locker_disable_config]
317318
trustpay = {payment_method = "card,bank_redirect,wallet"}
@@ -400,7 +401,7 @@ ach = { currency = "USD" }
400401
cashapp = {country = "US", currency = "USD"}
401402

402403
[connector_customer]
403-
connector_list = "stax,stripe"
404+
connector_list = "gocardless,stax,stripe"
404405
payout_connector_list = "wise"
405406

406407
[bank_config.online_banking_fpx]

config/development.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,14 @@ mollie = {long_lived_token = false, payment_method = "card"}
374374
square = {long_lived_token = false, payment_method = "card"}
375375
braintree = { long_lived_token = false, payment_method = "card" }
376376
payme = {long_lived_token = false, payment_method = "card"}
377+
gocardless = {long_lived_token = true, payment_method = "bank_debit"}
377378

378379
[temp_locker_disable_config]
379380
trustpay = {payment_method = "card,bank_redirect,wallet"}
380381
stripe = {payment_method = "card,bank_redirect,pay_later,wallet,bank_debit"}
381382

382383
[connector_customer]
383-
connector_list = "stax,stripe"
384+
connector_list = "gocardless,stax,stripe"
384385
payout_connector_list = "wise"
385386

386387
[dummy_connector]

config/docker_compose.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ mollie = {long_lived_token = false, payment_method = "card"}
203203
stax = { long_lived_token = true, payment_method = "card,bank_debit" }
204204
square = {long_lived_token = false, payment_method = "card"}
205205
braintree = { long_lived_token = false, payment_method = "card" }
206+
gocardless = {long_lived_token = true, payment_method = "bank_debit"}
206207

207208
[temp_locker_disable_config]
208209
trustpay = {payment_method = "card,bank_redirect,wallet"}
@@ -294,7 +295,7 @@ card.credit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay
294295
card.debit = {connector_list = "stripe,adyen,authorizedotnet,globalpay,worldpay,multisafepay,nmi,nexinets,noon"}
295296

296297
[connector_customer]
297-
connector_list = "stax,stripe"
298+
connector_list = "gocardless,stax,stripe"
298299
payout_connector_list = "wise"
299300

300301
[multiple_api_version_supported_connectors]

crates/api_models/src/enums.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub enum Connector {
9090
Forte,
9191
Globalpay,
9292
Globepay,
93-
//Gocardless,
93+
Gocardless,
9494
//Helcim, added as template code for future usage,
9595
Iatapay,
9696
Klarna,
@@ -207,7 +207,7 @@ pub enum RoutableConnectors {
207207
Forte,
208208
Globalpay,
209209
Globepay,
210-
//Gocardless,
210+
Gocardless,
211211
//Helcim, added as template code for future usage,
212212
Iatapay,
213213
Klarna,

crates/api_models/src/payments.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ pub enum BankDebitData {
753753
/// Bank-State-Branch (bsb) number
754754
#[schema(value_type = String, example = "000000")]
755755
bsb_number: Secret<String>,
756+
/// Owner name for bank debit
757+
#[schema(value_type = Option<String>, example = "A. Schneider")]
758+
bank_account_holder_name: Option<Secret<String>>,
756759
},
757760
BacsBankDebit {
758761
/// Billing details for bank debit

0 commit comments

Comments
 (0)