Skip to content

Commit

Permalink
ci(cypress): Update card number for adyen and status for paypal (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
likhinbopanna authored and Narayanbhat166 committed Jul 8, 2024
1 parent 1529a17 commit c89b0c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 33 deletions.
4 changes: 2 additions & 2 deletions cypress-tests/cypress/e2e/PaymentUtils/Adyen.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { getCustomExchange } from "./Commons";

const successfulNo3DSCardDetails = {
card_number: "371449635398431",
card_number: "4111111111111111",
card_exp_month: "03",
card_exp_year: "30",
card_holder_name: "John Doe",
card_cvc: "7373",
card_cvc: "737",
};

const successfulThreeDSTestCardDetails = {
Expand Down
48 changes: 17 additions & 31 deletions cypress-tests/cypress/e2e/PaymentUtils/Paypal.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "processing",
status: "succeeded",
},
},
},
Expand Down Expand Up @@ -94,7 +94,7 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "processing",
status: "succeeded",
},
},
},
Expand All @@ -109,10 +109,10 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "processing",
status: "succeeded",
amount: 6500,
amount_capturable: 6500,
amount_received: 0,
amount_capturable: 0,
amount_received: 6500,
},
},
},
Expand All @@ -121,10 +121,10 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "processing",
status: "partially_captured",
amount: 6500,
amount_capturable: 6500,
amount_received: 0,
amount_capturable: 0,
amount_received: 100,
},
},
},
Expand All @@ -146,14 +146,9 @@ export const connectorDetails = {
customer_acceptance: null,
},
Response: {
status: 400,
status: 200,
body: {
error: {
type: "invalid_request",
message:
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
code: "IR_14",
},
status: "succeeded",
},
},
},
Expand All @@ -166,14 +161,9 @@ export const connectorDetails = {
customer_acceptance: null,
},
Response: {
status: 400,
status: 200,
body: {
error: {
type: "invalid_request",
message:
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
code: "IR_14",
},
status: "succeeded",
},
},
},
Expand All @@ -186,14 +176,9 @@ export const connectorDetails = {
customer_acceptance: null,
},
Response: {
status: 400,
status: 200,
body: {
error: {
type: "invalid_request",
message:
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
code: "IR_14",
},
status: "succeeded",
},
},
},
Expand Down Expand Up @@ -228,7 +213,7 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "processing",
status: "succeeded",
},
},
},
Expand Down Expand Up @@ -338,7 +323,8 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
status: "requires_customer_action",
status: "failed",
error_code: "PERMISSION_DENIED",
},
},
},
Expand Down

0 comments on commit c89b0c6

Please # to comment.