Skip to content

Commit 0796bb3

Browse files
ci(cypress): Update card number for adyen and status for paypal (#5192)
1 parent ddfdc35 commit 0796bb3

File tree

2 files changed

+19
-33
lines changed

2 files changed

+19
-33
lines changed

cypress-tests/cypress/e2e/PaymentUtils/Adyen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { getCustomExchange } from "./Commons";
22

33
const successfulNo3DSCardDetails = {
4-
card_number: "371449635398431",
4+
card_number: "4111111111111111",
55
card_exp_month: "03",
66
card_exp_year: "30",
77
card_holder_name: "John Doe",
8-
card_cvc: "7373",
8+
card_cvc: "737",
99
};
1010

1111
const successfulThreeDSTestCardDetails = {

cypress-tests/cypress/e2e/PaymentUtils/Paypal.js

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const connectorDetails = {
6262
Response: {
6363
status: 200,
6464
body: {
65-
status: "processing",
65+
status: "succeeded",
6666
},
6767
},
6868
},
@@ -94,7 +94,7 @@ export const connectorDetails = {
9494
Response: {
9595
status: 200,
9696
body: {
97-
status: "processing",
97+
status: "succeeded",
9898
},
9999
},
100100
},
@@ -109,10 +109,10 @@ export const connectorDetails = {
109109
Response: {
110110
status: 200,
111111
body: {
112-
status: "processing",
112+
status: "succeeded",
113113
amount: 6500,
114-
amount_capturable: 6500,
115-
amount_received: 0,
114+
amount_capturable: 0,
115+
amount_received: 6500,
116116
},
117117
},
118118
},
@@ -121,10 +121,10 @@ export const connectorDetails = {
121121
Response: {
122122
status: 200,
123123
body: {
124-
status: "processing",
124+
status: "partially_captured",
125125
amount: 6500,
126-
amount_capturable: 6500,
127-
amount_received: 0,
126+
amount_capturable: 0,
127+
amount_received: 100,
128128
},
129129
},
130130
},
@@ -146,14 +146,9 @@ export const connectorDetails = {
146146
customer_acceptance: null,
147147
},
148148
Response: {
149-
status: 400,
149+
status: 200,
150150
body: {
151-
error: {
152-
type: "invalid_request",
153-
message:
154-
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
155-
code: "IR_14",
156-
},
151+
status: "succeeded",
157152
},
158153
},
159154
},
@@ -166,14 +161,9 @@ export const connectorDetails = {
166161
customer_acceptance: null,
167162
},
168163
Response: {
169-
status: 400,
164+
status: 200,
170165
body: {
171-
error: {
172-
type: "invalid_request",
173-
message:
174-
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
175-
code: "IR_14",
176-
},
166+
status: "succeeded",
177167
},
178168
},
179169
},
@@ -186,14 +176,9 @@ export const connectorDetails = {
186176
customer_acceptance: null,
187177
},
188178
Response: {
189-
status: 400,
179+
status: 200,
190180
body: {
191-
error: {
192-
type: "invalid_request",
193-
message:
194-
"This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured",
195-
code: "IR_14",
196-
},
181+
status: "succeeded",
197182
},
198183
},
199184
},
@@ -228,7 +213,7 @@ export const connectorDetails = {
228213
Response: {
229214
status: 200,
230215
body: {
231-
status: "processing",
216+
status: "succeeded",
232217
},
233218
},
234219
},
@@ -338,7 +323,8 @@ export const connectorDetails = {
338323
Response: {
339324
status: 200,
340325
body: {
341-
status: "requires_customer_action",
326+
status: "failed",
327+
error_code: "PERMISSION_DENIED",
342328
},
343329
},
344330
},

0 commit comments

Comments
 (0)