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

ci(cypress): add setup_mandate `pmid` flows (#10521)

likhinbopanna95c6e4b2042b
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Aci.js b/cypress-tests/cypress/e2e/configs/Payment/Aci.js
index eacfd2f4b0..dca99b1d2f 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Aci.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Aci.js
@@ -463,6 +463,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js b/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
index a02e58fb8c..f27d301e45 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
@@ -500,6 +500,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js b/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js
index 864f2040b2..fc41e04635 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js
@@ -383,6 +383,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
payment_type: "setup_mandate",
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Authipay.js b/cypress-tests/cypress/e2e/configs/Payment/Authipay.js
index 616e41d8ca..efb0dea4f3 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Authipay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Authipay.js
@@ -566,6 +566,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js b/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js
index eebc38d3d3..96ade94fb5 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js
@@ -1,9 +1,9 @@
+import { generateRandomEmail } from "../../../utils/RequestBodyUtils";
import {
customerAcceptance,
multiUseMandateData,
singleUseMandateData,
} from "./Commons";
-import { generateRandomEmail } from "../../../utils/RequestBodyUtils";
const successfulNo3DSCardDetails = {
card_number: "4111111111111111",
@@ -533,6 +533,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
email: generateRandomEmail(),
},
Response: {
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Bambora.js b/cypress-tests/cypress/e2e/configs/Payment/Bambora.js
index ea26a12c81..355869be1f 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Bambora.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Bambora.js
@@ -417,6 +417,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js b/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js
index 00cf3a3aee..059744cd51 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js
@@ -437,6 +437,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js
index 85421a65f2..07eff80169 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js
@@ -407,6 +407,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js b/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js
index 3d2cb917ce..09dc362f98 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js
@@ -769,6 +769,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: billingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js b/cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js
index 44ad5949b3..03d4f8fa71 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js
@@ -283,6 +283,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Braintree.js b/cypress-tests/cypress/e2e/configs/Payment/Braintree.js
index a729ca1f55..1dbb40e0be 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Braintree.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Braintree.js
@@ -473,6 +473,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Celero.js b/cypress-tests/cypress/e2e/configs/Payment/Celero.js
index 8f908f68f9..c41e9b4cbb 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Celero.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Celero.js
@@ -747,13 +747,9 @@ export const connectorDetails = {
},
},
Response: {
- status: 400,
+ status: 200,
body: {
- error: {
- type: "invalid_request_error",
- code: "feature_not_supported",
- message: "Zero auth is not supported",
- },
+ status: "processing",
},
},
}),
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
index a2e2f1ef6d..b5e17e9868 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
@@ -331,6 +331,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
index 20b94b41f0..012e640416 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
@@ -1065,6 +1065,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
}),
SaveCardUseNo3DSAutoCapture: getCustomExchange({
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
index 877d5dc5df..3260f1d02b 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
@@ -1,6 +1,6 @@
import {
- customerAcceptance,
connectorDetails as commonConnectorDetails,
+ customerAcceptance,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -834,6 +834,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Dlocal.js b/cypress-tests/cypress/e2e/configs/Payment/Dlocal.js
index b3a301db9e..c2ae6d69be 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Dlocal.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Dlocal.js
@@ -1,7 +1,7 @@
import {
customerAcceptance,
- singleUseMandateData,
multiUseMandateData,
+ singleUseMandateData,
} from "./Commons";
const mockBillingDetails = {
address: {
@@ -529,6 +529,8 @@ export const connectorDetails = {
card: successfulCardDetails,
billing: mockBillingDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Finix.js b/cypress-tests/cypress/e2e/configs/Payment/Finix.js
index 1d8dcae672..679337c94f 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Finix.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Finix.js
@@ -1,4 +1,4 @@
-import { customerAcceptance, cardRequiredField } from "./Commons";
+import { cardRequiredField, customerAcceptance } from "./Commons";
import { getCustomExchange } from "./Modifiers";
// Card details for non-3DS payment
@@ -404,6 +404,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js b/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js
index 75962779ca..88829fd334 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js
@@ -860,6 +860,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 400,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js b/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js
index da69ce1a83..22893a9ff5 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js
@@ -516,6 +516,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: billingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
index 9d805a0461..9b3e52e979 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
@@ -738,6 +738,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: billingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Forte.js b/cypress-tests/cypress/e2e/configs/Payment/Forte.js
index 77df0d1602..b13d606f2e 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Forte.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Forte.js
@@ -746,6 +746,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: billingAddressUS,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js b/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js
index f3babe9a55..5d4f8fd915 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js
@@ -620,6 +620,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Hipay.js b/cypress-tests/cypress/e2e/configs/Payment/Hipay.js
index d6c5412d3d..0330c6df33 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Hipay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Hipay.js
@@ -607,6 +607,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js b/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js
index 01a6d0398e..656859438c 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js
@@ -1,6 +1,6 @@
import {
- customerAcceptance,
connectorDetails as commonConnectorDetails,
+ customerAcceptance,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -366,6 +366,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Moneris.js b/cypress-tests/cypress/e2e/configs/Payment/Moneris.js
index 24860f04fb..aefbf9e450 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Moneris.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Moneris.js
@@ -251,6 +251,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js b/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js
index 013c614e65..6a2188623d 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js
@@ -456,6 +456,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js b/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js
index d832991b55..126153f2c3 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js
@@ -506,6 +506,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: germanBillingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js b/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js
index 17fbe4be1b..cdbba111c5 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js
@@ -465,6 +465,8 @@ export const connectorDetails = {
},
currency: "EUR",
billing: billingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 400,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nmi.js b/cypress-tests/cypress/e2e/configs/Payment/Nmi.js
index db9f90f3d0..586a63aeec 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Nmi.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Nmi.js
@@ -301,6 +301,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Noon.js b/cypress-tests/cypress/e2e/configs/Payment/Noon.js
index 2ae1d2a224..fb81c32a03 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Noon.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Noon.js
@@ -502,6 +502,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js b/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js
index 0e7b1441f9..a730d418eb 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js
@@ -397,6 +397,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js
index 853009076f..ca0f3d18b8 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js
@@ -390,6 +390,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js b/cypress-tests/cypress/e2e/configs/Payment/Paybox.js
index 153e165db4..33d627b7a0 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Paybox.js
@@ -559,6 +559,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: billingData,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Payload.js b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
index 81be92712d..fa01fdf0b2 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Payload.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
@@ -1,8 +1,8 @@
import {
- customerAcceptance,
connectorDetails as commonConnectorDetails,
- singleUseMandateData,
+ customerAcceptance,
multiUseMandateData,
+ singleUseMandateData,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -633,6 +633,7 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
setup_future_usage: "off_session",
+ mandate_data: null,
customer_acceptance: customerAcceptance,
},
Response: {
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js b/cypress-tests/cypress/e2e/configs/Payment/Paypal.js
index eddb9dd3e6..857830281a 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Paypal.js
@@ -326,6 +326,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paysafe.js b/cypress-tests/cypress/e2e/configs/Payment/Paysafe.js
index 83b0a985af..95ec7e02d8 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Paysafe.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Paysafe.js
@@ -303,6 +303,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Payu.js b/cypress-tests/cypress/e2e/configs/Payment/Payu.js
index e687e23416..bec265e399 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Payu.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Payu.js
@@ -584,6 +584,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
billing: polishBillingAddress,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js b/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js
index c2d4ff00c1..b8aff31eb0 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js
@@ -313,6 +313,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js b/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js
index 00333eb219..2268eb5faf 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js
@@ -346,6 +346,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
payment_type: "setup_mandate",
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Shift4.js b/cypress-tests/cypress/e2e/configs/Payment/Shift4.js
index 2b80bf8b5e..4ad2108347 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Shift4.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Shift4.js
@@ -366,6 +366,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
payment_type: "setup_mandate",
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js b/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js
index 3931ee5401..53d099b47c 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js
@@ -757,15 +757,13 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
- status: 400,
+ status: 200,
body: {
- error: {
- type: "invalid_request_error",
- code: "feature_not_supported",
- message: "Zero auth is not supported",
- },
+ status: "processing",
},
},
}),
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Square.js b/cypress-tests/cypress/e2e/configs/Payment/Square.js
index 726fbd8a4d..b487714c36 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Square.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Square.js
@@ -744,6 +744,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 400,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stax.js b/cypress-tests/cypress/e2e/configs/Payment/Stax.js
index 8762fcc7b7..86260e8ce0 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Stax.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Stax.js
@@ -816,6 +816,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 400,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
index d55fa0a59e..8db123f26c 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
@@ -1,7 +1,7 @@
import {
- customerAcceptance,
cardRequiredField,
connectorDetails as commonConnectorDetails,
+ customerAcceptance,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -595,6 +595,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Tesouro.js b/cypress-tests/cypress/e2e/configs/Payment/Tesouro.js
index b7527927ee..716435b4c7 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Tesouro.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Tesouro.js
@@ -308,6 +308,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js b/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js
index d7437dfde3..3de5ee0caf 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js
@@ -477,6 +477,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Trustpay.js b/cypress-tests/cypress/e2e/configs/Payment/Trustpay.js
index a2203d4f98..f37d846349 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Trustpay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Trustpay.js
@@ -1,6 +1,6 @@
import {
- customerAcceptance,
connectorDetails as commonConnectorDetails,
+ customerAcceptance,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -269,6 +269,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Tsys.js b/cypress-tests/cypress/e2e/configs/Payment/Tsys.js
index 317c1ed6bf..9652e7f04b 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Tsys.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Tsys.js
@@ -564,6 +564,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
index 1593e31e94..579a1fc075 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
@@ -428,6 +428,8 @@ export const connectorDetails = {
card: successfulNo3DSCardDetails,
},
payment_type: "setup_mandate",
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js
index f05a92f350..f5c5e0bec1 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js
@@ -637,7 +637,8 @@ export const connectorDetails = {
card: successfulNoThreeDsCardDetailsRequest,
},
currency: "USD",
- mandate_data: singleUseMandateData,
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js
index d0a420b69b..b0e49cc0be 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js
@@ -235,6 +235,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js b/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js
index 7b213bfdd2..098c3cc351 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js
@@ -1,7 +1,7 @@
import {
customerAcceptance,
- singleUseMandateData,
multiUseMandateData,
+ singleUseMandateData,
} from "./Commons";
import { getCustomExchange } from "./Modifiers";
@@ -247,6 +247,8 @@ export const connectorDetails = {
payment_method_data: {
card: successfulNo3DSCardDetails,
},
+ mandate_data: null,
+ customer_acceptance: customerAcceptance,
},
Response: {
status: 501,
diff --git a/cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js
index 5feef678f1..b330b251c1 100644
--- a/cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js
+++ b/cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js
@@ -252,4 +252,166 @@ describe("Card - SingleUse Mandates flow test", () => {
cy.retrievePaymentCallTest(globalState, data);
});
});
+
+ context(
+ "Card - Zero auth Mandate flow Using PMID (create and confirm)",
+ () => {
+ let shouldContinue = true; // variable that will be used to skip tests if a previous test fails
+
+ beforeEach(function () {
+ if (!shouldContinue) {
+ this.skip();
+ }
+ });
+
+ it("Create Customer", () => {
+ cy.createCustomerCallTest(fixtures.customerCreateBody, globalState);
+ });
+
+ it("Create No 3DS Payment Intent", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["ZeroAuthPaymentIntent"];
+
+ cy.createPaymentIntentTest(
+ fixtures.createPaymentBody,
+ data,
+ "no_three_ds",
+ "automatic",
+ globalState
+ );
+
+ if (shouldContinue)
+ shouldContinue = utils.should_continue_further(data);
+ });
+
+ it("Confirm No 3DS payment", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["ZeroAuthConfirmPayment"];
+
+ cy.confirmCallTest(fixtures.confirmBody, data, true, globalState);
+
+ if (shouldContinue)
+ shouldContinue = utils.should_continue_further(data);
+ });
+
+ it("retrieve-payment-call-test", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["ZeroAuthMandate"];
+
+ cy.retrievePaymentCallTest(globalState, data);
+ });
+
+ it("Confirm No 3DS MIT", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.mitUsingPMId(
+ fixtures.pmIdConfirmBody,
+ data,
+ 6000,
+ true,
+ "automatic",
+ globalState
+ );
+ });
+
+ it("retrieve-payment-call-test", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.retrievePaymentCallTest(globalState, data);
+ });
+
+ it("Confirm No 3DS MIT", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.mitUsingPMId(
+ fixtures.pmIdConfirmBody,
+ data,
+ 6000,
+ true,
+ "automatic",
+ globalState
+ );
+ });
+
+ it("retrieve-payment-call-test", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.retrievePaymentCallTest(globalState, data);
+ });
+ }
+ );
+
+ context("Card - Zero auth Mandate flow Using PMID (create + confirm)", () => {
+ let shouldContinue = true; // variable that will be used to skip tests if a previous test fails
+
+ beforeEach(function () {
+ if (!shouldContinue) {
+ this.skip();
+ }
+ });
+
+ it("Create Customer", () => {
+ cy.createCustomerCallTest(fixtures.customerCreateBody, globalState);
+ });
+
+ it("Confirm No 3DS CIT", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["ZeroAuthConfirmPayment"];
+
+ cy.citForMandatesCallTest(
+ fixtures.citConfirmBody,
+ data,
+ 0,
+ true,
+ "automatic",
+ "setup_mandate",
+ globalState
+ );
+
+ if (shouldContinue) shouldContinue = utils.should_continue_further(data);
+ });
+
+ it("retrieve-payment-call-test", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["ZeroAuthMandate"];
+
+ cy.retrievePaymentCallTest(globalState, data);
+ });
+
+ it("Confirm No 3DS MIT", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.mitUsingPMId(
+ fixtures.pmIdConfirmBody,
+ data,
+ 6000,
+ true,
+ "automatic",
+ globalState
+ );
+ });
+
+ it("retrieve-payment-call-test", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "card_pm"
+ ]["MITAutoCapture"];
+
+ cy.retrievePaymentCallTest(globalState, data);
+ });
+ });
});
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index d186f52720..e59c4e44e0 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -3355,6 +3355,7 @@ Cypress.Commands.add(
requestBody.profile_id = profileId;
requestBody.recurring_details.data = paymentMethodId;
+ globalState.set("paymentAmount", requestBody.amount);
cy.request({
method: "POST",
url: url,