Skip to content

Commit

Permalink
ci(cypress): Fix Iatapay Zero Auth Mandates Flow (#6552)
Browse files Browse the repository at this point in the history
  • Loading branch information
likhinbopanna authored and Sayak Bhattacharya committed Nov 26, 2024
1 parent bfa5a0a commit 8b68fdd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions cypress-tests/cypress/e2e/PaymentUtils/Iatapay.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const successfulNo3DSCardDetails = {
card_number: "4111111111111111",
card_exp_month: "03",
card_exp_year: "30",
card_holder_name: "John Doe",
card_cvc: "737",
};

export const connectorDetails = {
bank_redirect_pm: {
Ideal: {
Expand Down Expand Up @@ -46,6 +54,40 @@ export const connectorDetails = {
},
},
},
ZeroAuthPaymentIntent: {
Request: {
amount: 0,
setup_future_usage: "off_session",
currency: "USD",
},
Response: {
status: 200,
body: {
status: "requires_payment_method",
setup_future_usage: "off_session",
},
},
},
ZeroAuthConfirmPayment: {
Request: {
payment_type: "setup_mandate",
payment_method: "card",
payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
},
Response: {
status: 501,
body: {
error: {
type: "invalid_request",
message: "Setup Mandate flow for Iatapay is not implemented",
code: "IR_00",
},
},
},
},
},
upi_pm: {
PaymentIntent: {
Expand Down

0 comments on commit 8b68fdd

Please sign in to comment.