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

test(cypress): add ACH bank debit coverage for wells fargo (#12447)

HS-QUALIBOTb502543de34f
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index 29b36c2aea..8ad0d37671 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -530,7 +530,7 @@ export const CONNECTOR_LISTS = {
"paypal",
"stripe",
],
- BANK_DEBIT: ["adyen", "novalnet", "payload"], // payload verified as working
+ BANK_DEBIT: ["adyen", "novalnet", "payload", "wellsfargo"], // payload verified as working
BANK_REDIRECT_BANCONTACT: ["adyen", "stripe"],
BANK_REDIRECT_MANDATE: ["adyen"],
BLUECODE_WALLET: ["calida"],
diff --git a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
index 579a1fc075..9b3ab5fbef 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
@@ -646,4 +646,66 @@ export const connectorDetails = {
},
},
},
+ bank_debit_pm: {
+ PaymentIntent: (paymentMethodType) => {
+ if (paymentMethodType !== "Ach") {
+ return {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
+ };
+ }
+ return {
+ Request: {
+ currency: "USD",
+ setup_future_usage: "off_session",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ };
+ },
+ Ach: {
+ Request: {
+ payment_method: "bank_debit",
+ payment_method_type: "ach",
+ payment_method_data: {
+ bank_debit: {
+ ach_bank_debit: {
+ account_number: "000123456789",
+ routing_number: "121042882",
+ bank_account_holder_name: "John Doe",
+ bank_type: "checking",
+ },
+ },
+ },
+ billing: {
+ address: {
+ first_name: "John",
+ last_name: "Doe",
+ line1: "123 Main St",
+ city: "San Francisco",
+ state: "California",
+ zip: "94122",
+ country: "US",
+ },
+ phone: {
+ number: "4155551234",
+ country_code: "+1",
+ },
+ email: "[email protected]",
+ },
+ email: "[email protected]",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ },
};