diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.js index de652ca42c..1dcbcf929a 100644 --- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js +++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js @@ -1203,6 +1203,9 @@ export const connectorDetails = { status: "requires_customer_action", }, }, + Configs: { + TRIGGER_SKIP: true, + }, }), }, OnlineBankingFpx: getCustomExchange({ @@ -1382,6 +1385,18 @@ export const connectorDetails = { billing: standardBillingAddress, }, }), + MandateSingleUseAutoCapture: getCustomExchange({ + Request: {}, + Response: { + status: 200, + body: { + status: "requires_customer_action", + }, + }, + Configs: { + TRIGGER_SKIP: true, + }, + }), }, }, bank_debit_pm: { diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js index 1fc6fba97b..ad31662368 100644 --- a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js +++ b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js @@ -1097,6 +1097,56 @@ export const connectorDetails = { status: "requires_customer_action", }, }, + MandateSingleUseAutoCapture: { + Request: { + payment_method: "bank_redirect", + payment_method_type: "ideal", + payment_method_data: { + bank_redirect: { + ideal: { + bank_name: "ing", + }, + }, + }, + billing: { + email: "joseph.Doe@example.com", + address: { + line1: "1467", + line2: "Harrison Street", + line3: "Harrison Street", + city: "San Fransico", + state: "California", + zip: "94122", + country: "NL", + first_name: "joseph", + last_name: "Doe", + }, + phone: { + number: "9123456789", + country_code: "+91", + }, + }, + currency: "EUR", + customer_acceptance: customerAcceptance, + mandate_data: { + customer_acceptance: customerAcceptance, + mandate_type: { + single_use: { + amount: 8000, + currency: "EUR", + }, + }, + }, + setup_future_usage: "off_session", + payment_type: "new_mandate", + }, + Response: { + status: 200, + body: { + status: "requires_customer_action", + }, + }, + }, }, Giropay: { Request: { @@ -1442,6 +1492,97 @@ export const connectorDetails = { }, }, }), + AfterpayClearpayAutoCapture: getCustomExchange({ + Request: { + currency: "USD", + capture_method: "automatic", + billing: { + address: { + line1: "1467 Harrison Street", + city: "San Francisco", + state: "California", + zip: "94122", + country: "US", + first_name: "Mock", + last_name: "Mock", + }, + email: "customer@email.com", + }, + shipping: { + address: { + line1: "1467 Harrison Street", + city: "San Francisco", + state: "California", + zip: "94122", + country: "US", + first_name: "Mock", + last_name: "Mock", + }, + }, + order_details: [ + { + product_name: "Test Product", + quantity: 1, + amount: 6000, + }, + ], + }, + Response: { + status: 200, + body: { + status: "requires_payment_method", + }, + }, + }), + AfterpayClearpay: getCustomExchange({ + Request: { + payment_method: "pay_later", + payment_method_type: "afterpay_clearpay", + payment_experience: "redirect_to_url", + payment_method_data: { + pay_later: { + afterpay_clearpay_redirect: {}, + }, + }, + currency: "USD", + billing: { + address: { + line1: "1467 Harrison Street", + city: "San Francisco", + state: "California", + zip: "94122", + country: "US", + first_name: "Mock", + last_name: "Mock", + }, + email: "customer@email.com", + }, + shipping: { + address: { + line1: "1467 Harrison Street", + city: "San Francisco", + state: "California", + zip: "94122", + country: "US", + first_name: "Mock", + last_name: "Mock", + }, + }, + order_details: [ + { + product_name: "Test Product", + quantity: 1, + amount: 6000, + }, + ], + }, + Response: { + status: 200, + body: { + status: "requires_customer_action", + }, + }, + }), }, bank_debit_pm: { PaymentIntent: (paymentMethodType) => { diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js index 6b2cfdc956..c84c182e44 100644 --- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js +++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js @@ -605,7 +605,7 @@ export const CONNECTOR_LISTS = { "wellsfargo", ], // payload verified as working BANK_REDIRECT_BANCONTACT: ["adyen", "stripe"], - BANK_REDIRECT_MANDATE: ["adyen"], + BANK_REDIRECT_MANDATE: ["adyen", "stripe"], BLUECODE_WALLET: ["calida"], ALIPAY_HK_WALLET: [""], PAYPAL_WALLET: [ @@ -664,7 +664,7 @@ export const CONNECTOR_LISTS = { EXTERNAL_THREE_DS: ["stripe", "finix"], PARTNER_MERCHANT_IDENTIFIER: ["adyen", "checkout"], AFFIRM_PAY_LATER: ["affirm"], - AFTERPAY_CLEARPAY: ["adyen"], + AFTERPAY_CLEARPAY: ["adyen", "stripe"], ALMA: ["adyen"], WALLEY: ["adyen"], EXTEND_AUTHORIZATION: ["adyen", "paypal"],