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): [Payload] add ACH bank debit mandate coverage (#13258)

venkatakarthikm-makera0c34b2e35c0
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Payload.js b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
index 8a48f8d322..4827dcdfba 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Payload.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
@@ -774,6 +774,78 @@ export const connectorDetails = {
},
},
}),
+ MandateSingleUseAch: getCustomExchange({
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: DUPLICATION_TIMEOUT,
+ },
+ },
+ Request: {
+ amount: 6540,
+ payment_method: "bank_debit",
+ payment_method_type: "ach",
+ currency: "USD",
+ payment_method_data: {
+ bank_debit: {
+ ach_bank_debit: {
+ account_number: "000123456789",
+ routing_number: "110000000",
+ bank_account_holder_name: "John Doe",
+ bank_type: "checking",
+ },
+ },
+ },
+ mandate_data: {
+ customer_acceptance: customerAcceptance,
+ mandate_type: {
+ multi_use: {
+ amount: 8000,
+ currency: "USD",
+ },
+ },
+ },
+ setup_future_usage: "off_session",
+ billing: {
+ address: {
+ first_name: "John",
+ last_name: "Doe",
+ line1: "123 Main St",
+ city: "San Francisco",
+ state: "California",
+ zip: "94122",
+ country: "US",
+ },
+ },
+ payment_type: "new_mandate",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
+ MITAutoCaptureAch: getCustomExchange({
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: DUPLICATION_TIMEOUT,
+ },
+ },
+ Request: {
+ amount: 6540,
+ off_session: true,
+ confirm: true,
+ currency: "USD",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
},
webhook: {
TransactionIdConfig: {