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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
test(cypress): add PMID mandate flow with customer_acceptance and list PM steps (#13475)
likhinbopanna0fd5e80f4c26
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Aci.js b/cypress-tests/cypress/e2e/configs/Payment/Aci.jsindex 8875d217f2..6d83f34f1b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Aci.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Aci.js@@ -678,6 +678,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ currency: "EUR",+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },No3DSFailPayment: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js b/cypress-tests/cypress/e2e/configs/Payment/Adyen.jsindex 852e7be9fa..10086255b5 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Adyen.js@@ -618,6 +618,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js b/cypress-tests/cypress/e2e/configs/Payment/Airwallex.jsindex 5ddf25b362..318fd77663 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Airwallex.js@@ -756,6 +756,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Authipay.js b/cypress-tests/cypress/e2e/configs/Payment/Authipay.jsindex 69929ad645..c323f8159f 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Authipay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Authipay.js@@ -594,6 +594,27 @@ export const connectorDetails = {},},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Authipay doesn't support MIT+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),MITWithoutBillingAddress: getCustomExchange({Configs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js b/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.jsindex 771b295a5e..4ebe732fe4 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Authorizedotnet.js@@ -515,6 +515,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Bambora.js b/cypress-tests/cypress/e2e/configs/Payment/Bambora.jsindex db873e5a3d..d49b2a12bb 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Bambora.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Bambora.js@@ -378,6 +378,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js b/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.jsindex 674780f42b..1a1ee0f12e 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Bamboraapac.js@@ -391,6 +391,9 @@ export const connectorDetails = {MITAutoCapture: getCustomExchange({...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.jsindex f40ab7abcb..5818a4f32e 100644--- a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js+++ b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js@@ -428,6 +428,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Barclaycard.js b/cypress-tests/cypress/e2e/configs/Payment/Barclaycard.jsindex f128aa9306..9349fe88ba 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Barclaycard.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Barclaycard.js@@ -664,6 +664,27 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js b/cypress-tests/cypress/e2e/configs/Payment/Billwerk.jsindex f24da03143..8a3c070b31 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Billwerk.js@@ -794,6 +794,28 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ setup_future_usage: "on_session",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Celero.js b/cypress-tests/cypress/e2e/configs/Payment/Celero.jsindex f0c3d0a582..ccaa2f0683 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Celero.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Celero.js@@ -794,6 +794,27 @@ export const connectorDetails = {},},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support MIT+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),MITWithoutBillingAddress: getCustomExchange({Configs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js b/cypress-tests/cypress/e2e/configs/Payment/Checkout.jsindex c32c35cc55..03869ed1dc 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js@@ -673,6 +673,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ mit_category: "installment",+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },No3DSFailPayment: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.jsindex 6e78de8931..5ddb578195 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js@@ -3381,6 +3381,34 @@ export const connectorDetails = {},},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ ResponseCustom: {+ status: 400,+ body: {+ error: {+ message:+ "No eligible connector was found for the current payment method configuration",+ type: "invalid_request",+ },+ },+ },+ }),MITWithLimitedCardData: getCustomExchange({Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.jsindex 755d30ac0a..7742aa2dd6 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js@@ -793,6 +793,14 @@ export const connectorDetails = {},...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ CONNECTOR_CREDENTIAL: {+ value: "connector_1",+ },+ },+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),MITManualCapture: {Configs: {CONNECTOR_CREDENTIAL: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Finix.js b/cypress-tests/cypress/e2e/configs/Payment/Finix.jsindex 1abf91084d..060bb59b18 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Finix.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Finix.js@@ -272,6 +272,28 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ currency: "USD",+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },PaymentMethodIdMandateNo3DSManualCapture: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js b/cypress-tests/cypress/e2e/configs/Payment/Fiserv.jsindex a11f8c60a8..4b91538967 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiserv.js@@ -905,6 +905,32 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ // Fiserv does not support MIT payments with mandate_id+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ mandate_id: null,+ payment_method: "card",+ payment_method_data: payment_method_data_no3ds,+ connector: "fiserv",+ },+ },+ },MITManualCapture: {// Fiserv does not support MIT payments with mandate_idConfigs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js b/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.jsindex f35b8f5767..d865089c08 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js@@ -483,6 +483,26 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ currency: "EUR",+ billing: billingAddress,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.jsindex 84c05163a5..9246dcd08f 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js@@ -451,6 +451,31 @@ export const connectorDetails = {},Response: MITErrorResponse,},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ currency: "MYR",+ billing: billingAddress,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "failed",+ error_code: "Token not found",+ error_message: "Token not found",+ },+ },+ },MITWithoutBillingAddress: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Forte.js b/cypress-tests/cypress/e2e/configs/Payment/Forte.jsindex a83263d7f0..080e8377f3 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Forte.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Forte.js@@ -768,6 +768,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "processing",+ setup_future_usage: "on_session",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js b/cypress-tests/cypress/e2e/configs/Payment/Globalpay.jsindex afe86984a9..4ef038895d 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Globalpay.js@@ -566,6 +566,26 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ currency: "EUR",+ billing: billingAddressEurope,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {currency: "EUR",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Helcim.js b/cypress-tests/cypress/e2e/configs/Payment/Helcim.jsindex a37082d024..9f961fe0cf 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Helcim.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Helcim.js@@ -347,6 +347,23 @@ const card_pm = {body: { status: "succeeded" },},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: { TRIGGER_SKIP: true },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: { status: "succeeded" },+ },+ },MITManualCapture: {Configs: { TRIGGER_SKIP: true },Request: {},diff --git a/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js b/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.jsindex 656859438c..b37193d7b2 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js@@ -524,5 +524,8 @@ export const connectorDetails = {MITAutoCapture: getCustomExchange({...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),},};diff --git a/cypress-tests/cypress/e2e/configs/Payment/Mollie.js b/cypress-tests/cypress/e2e/configs/Payment/Mollie.jsindex 2665020bb1..3c30f7449d 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Mollie.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Mollie.js@@ -617,6 +617,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ description: "Test Payment",+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },PaymentMethodIdMandateNo3DSAutoCapture: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js b/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.jsindex d3388ac84f..95785fb6b0 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js@@ -407,6 +407,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js b/cypress-tests/cypress/e2e/configs/Payment/Nexinets.jsindex 5599316259..05a2e1ea07 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Nexinets.js@@ -448,6 +448,21 @@ export const connectorDetails = {billing: germanBillingAddress,},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ //MIT is not implemented for Nexinets+ Request: {+ currency: "EUR",+ billing: germanBillingAddress,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ }),MITManualCapture: getCustomExchange({//MIT is not implemented for NexinetsRequest: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js b/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.jsindex ce6cf5a07f..213983a272 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js@@ -117,6 +117,27 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Noon.js b/cypress-tests/cypress/e2e/configs/Payment/Noon.jsindex 56921991ce..f26550e938 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Noon.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Noon.js@@ -462,6 +462,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js b/cypress-tests/cypress/e2e/configs/Payment/Novalnet.jsindex 23c0deac09..1439ac1b98 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Novalnet.js@@ -369,6 +369,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ currency: "EUR",+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {currency: "EUR",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.jsindex 89c567e919..afba76642b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js@@ -521,6 +521,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ amount_to_capture: 6000,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },// Save card scenariosSaveCardUseNo3DSAutoCapture: {Request: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js b/cypress-tests/cypress/e2e/configs/Payment/Paybox.jsindex 33d627b7a0..6a02f36d49 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Paybox.js@@ -434,6 +434,27 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ currency: "EUR",+ amount: 6000,+ billing: billingData,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {currency: "EUR",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Payload.js b/cypress-tests/cypress/e2e/configs/Payment/Payload.jsindex 9868798fb1..df25902e1b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Payload.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Payload.js@@ -724,6 +724,15 @@ export const connectorDetails = {},...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ DELAY: {+ STATUS: true,+ TIMEOUT: DUPLICATION_TIMEOUT,+ },+ },+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),MITManualCapture: {Configs: {DELAY: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js b/cypress-tests/cypress/e2e/configs/Payment/Paypal.jsindex be8a926c45..9479d7c413 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Paypal.js@@ -627,6 +627,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js b/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.jsindex 9f79756463..75d87f7505 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Peachpayments.js@@ -566,6 +566,32 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ config: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 400,+ body: {+ error: {+ code: "IR_19",+ message: "Payment method type not supported",+ reason: "automatic is not supported by peachpayments",+ type: "invalid_request",+ },+ },+ },+ },MITWithLimitedCardData: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js b/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.jsindex b3267a166a..6160f30cc5 100644--- a/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js+++ b/cypress-tests/cypress/e2e/configs/Payment/PowerTranz.js@@ -743,6 +743,27 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Shift4.js b/cypress-tests/cypress/e2e/configs/Payment/Shift4.jsindex 68d57c4d9d..5b679f5ed2 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Shift4.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Shift4.js@@ -763,6 +763,27 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Configs: {TRIGGER_SKIP: true,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js b/cypress-tests/cypress/e2e/configs/Payment/Silverflow.jsindex 7a9164ce4f..26afd90ac8 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Silverflow.js@@ -809,6 +809,27 @@ export const connectorDetails = {},},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Silverflow doesn't support MIT+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),MITWithoutBillingAddress: getCustomExchange({Configs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Square.js b/cypress-tests/cypress/e2e/configs/Payment/Square.jsindex 806b9e8c60..4b3136aadc 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Square.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Square.js@@ -776,6 +776,32 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ // Square does not support MIT payments with mandate_id+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ mandate_id: null,+ payment_method: "card",+ payment_method_data: payment_method_data_no3ds,+ connector: "square",+ },+ },+ },MITManualCapture: {// Square does not support MIT payments with mandate_idConfigs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stax.js b/cypress-tests/cypress/e2e/configs/Payment/Stax.jsindex 3b9522606f..12a1fcacec 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Stax.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Stax.js@@ -848,6 +848,32 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ // stax does not support MIT payments with mandate_id+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ mandate_id: null,+ payment_method: "card",+ payment_method_data: payment_method_data_no3ds,+ connector: "stax",+ },+ },+ },MITManualCapture: {// stax does not support MIT payments with mandate_idConfigs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js b/cypress-tests/cypress/e2e/configs/Payment/Stripe.jsindex 968d4f8f6b..067659b534 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js@@ -658,6 +658,15 @@ export const connectorDetails = {},...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ CONNECTOR_CREDENTIAL: {+ specName: ["connectorAgnosticNTID"],+ value: "connector_2",+ },+ },+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/StripeConnect.js b/cypress-tests/cypress/e2e/configs/Payment/StripeConnect.jsindex b7e521f9f0..82f34b66cb 100644--- a/cypress-tests/cypress/e2e/configs/Payment/StripeConnect.js+++ b/cypress-tests/cypress/e2e/configs/Payment/StripeConnect.js@@ -584,6 +584,25 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ split_payments: stripeSplitPaymentData,+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {split_payments: stripeSplitPaymentData,diff --git a/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js b/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.jsindex 3de5ee0caf..f28e1a830b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js+++ b/cypress-tests/cypress/e2e/configs/Payment/TrustPayments.js@@ -531,6 +531,31 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Configs: {+ TRIGGER_SKIP: true, // Skip if Authipay doesn't support mandates+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 501,+ body: {+ error: {+ type: "invalid_request_error",+ code: "connector_error",+ message: "Payment method not supported",+ },+ },+ },+ },MITWithoutBillingAddress: {Configs: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Tsys.js b/cypress-tests/cypress/e2e/configs/Payment/Tsys.jsindex bb21d7f833..0d995b21b9 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Tsys.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Tsys.js@@ -588,6 +588,28 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ mandate_id: null,+ payment_method: "card",+ payment_method_data: payment_method_data_visa,+ connector: "tsys",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.jsindex 9b3ab5fbef..185b5d97de 100644--- a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js+++ b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js@@ -397,6 +397,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.jsindex fb8c0a3df3..c8e8771d02 100644--- a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js@@ -553,6 +553,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.jsindex adb8c54f24..f4c35bffb0 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js@@ -249,6 +249,24 @@ export const connectorDetails = {},},},+ MITAutoCaptureWithCustomerAcceptance: {+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "processing",+ },+ },+ },ZeroAuthMandate: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js b/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.jsindex 426720949e..1741974d10 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js@@ -494,6 +494,27 @@ export const connectorDetails = {},},}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true,+ },+ Request: {+ customer_acceptance: {+ acceptance_type: "offline",+ accepted_at: "1963-05-03T04:07:52.723Z",+ online: {+ ip_address: "127.0.0.1",+ user_agent: "amet irure esse",+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),Response: {status: 200,body: {diff --git a/cypress-tests/cypress/e2e/configs/Payment/Zift.js b/cypress-tests/cypress/e2e/configs/Payment/Zift.jsindex 99755edb98..4f0c0088a5 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Zift.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Zift.js@@ -486,6 +486,9 @@ export const connectorDetails = {MITAutoCapture: getCustomExchange({...commonConnectorDetails.card_pm.MITAutoCapture,}),+ MITAutoCaptureWithCustomerAcceptance: getCustomExchange({+ ...commonConnectorDetails.card_pm.MITAutoCaptureWithCustomerAcceptance,+ }),MITManualCapture: {Request: {},Response: {diff --git a/cypress-tests/cypress/e2e/spec/Payment/20-MandatesUsingPMID.cy.js b/cypress-tests/cypress/e2e/spec/Payment/20-MandatesUsingPMID.cy.jsindex 15be6ff568..0e0d9aa9d7 100644--- a/cypress-tests/cypress/e2e/spec/Payment/20-MandatesUsingPMID.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/20-MandatesUsingPMID.cy.js@@ -596,6 +596,107 @@ describe("Card - Mandates using Payment Method Id flow test", () => {});});+ context(+ "Card - NoThreeDS MIT with PMID and customer_acceptance flow test",+ () => {+ it("Create Customer -> Create No 3DS Payment Intent -> Confirm No 3DS CIT -> List Customer Payment Methods -> MIT with PMID and customer_acceptance -> List Customer Payment Methods", () => {+ let shouldContinue = true;++ cy.step("Create Customer", () => {+ cy.createCustomerCallTest(fixtures.customerCreateBody, globalState);+ });++ cy.step("Create No 3DS Payment Intent", () => {+ if (!shouldContinue) {+ cy.task("cli_log", "Skipping step: Create No 3DS Payment Intent");+ return;+ }+ const data = getConnectorDetails(globalState.get("connectorId"))[+ "card_pm"+ ]["PaymentIntentOffSession"];++ cy.createPaymentIntentTest(+ fixtures.createPaymentBody,+ data,+ "no_three_ds",+ "automatic",+ globalState+ );++ if (!utils.should_continue_further(data)) {+ shouldContinue = false;+ }+ });++ cy.step("Confirm No 3DS CIT", () => {+ if (!shouldContinue) {+ cy.task("cli_log", "Skipping step: Confirm No 3DS CIT");+ return;+ }+ const data = getConnectorDetails(globalState.get("connectorId"))[+ "card_pm"+ ]["PaymentMethodIdMandateNo3DSAutoCapture"];++ cy.citForMandatesCallTest(+ fixtures.citConfirmBody,+ data,+ 6000,+ true,+ "automatic",+ "new_mandate",+ globalState+ );++ if (!utils.should_continue_further(data)) {+ shouldContinue = false;+ }+ });++ cy.step("List Customer Payment Methods", () => {+ if (!shouldContinue) {+ cy.task("cli_log", "Skipping step: List Customer Payment Methods");+ return;+ }+ cy.listCustomerPMCallTest(globalState);+ });++ cy.step("MIT with PMID and customer_acceptance", () => {+ if (!shouldContinue) {+ cy.task(+ "cli_log",+ "Skipping step: MIT with PMID and customer_acceptance"+ );+ return;+ }+ const data = getConnectorDetails(globalState.get("connectorId"))[+ "card_pm"+ ]["MITAutoCaptureWithCustomerAcceptance"];++ cy.mitUsingPMId(+ fixtures.pmIdConfirmBody,+ data,+ 6000,+ true,+ "automatic",+ globalState+ );++ if (!utils.should_continue_further(data)) {+ shouldContinue = false;+ }+ });++ cy.step("List Customer Payment Methods", () => {+ if (!shouldContinue) {+ cy.task("cli_log", "Skipping step: List Customer Payment Methods");+ return;+ }+ cy.listCustomerPMCallTest(globalState);+ });+ });+ }+ );+context("Card - ThreeDS Create + Confirm Automatic CIT and MIT payment flow test",() => {