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

fix(connector): [Stripe] Fix bug in Stripe Bacs Bank Debit (#1537)

AkshayaFoigerdfadcd52e5d2
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs
index 03d17251e0..9c734d2e0b 100644
--- a/crates/router/src/connector/stripe/transformers.rs
+++ b/crates/router/src/connector/stripe/transformers.rs
@@ -942,7 +942,7 @@ fn get_bank_debit_data(
} => {
let bacs_data = BankDebitData::Bacs {
account_number: account_number.to_owned(),
- sort_code: sort_code.to_owned(),
+ sort_code: Secret::new(sort_code.clone().expose().replace('-', "")),
};
let billing_data = StripeBillingAddress::from(billing_details);