Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cypress-tests/cypress/e2e/configs/Payment/Commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,9 @@ export const connectorDetails = {
status: "requires_customer_action",
},
},
Configs: {
TRIGGER_SKIP: true,
},
}),
},
OnlineBankingFpx: getCustomExchange({
Expand Down Expand Up @@ -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: {
Expand Down
141 changes: 141 additions & 0 deletions cypress-tests/cypress/e2e/configs/Payment/Stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions cypress-tests/cypress/e2e/configs/Payment/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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"],
Expand Down
Loading