-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(cypress): Add bank redirects for stripe (#4772)
Co-authored-by: Likhin Bopanna <[email protected]>
- Loading branch information
1 parent
b1cb053
commit 0553476
Showing
7 changed files
with
273 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -441,7 +441,6 @@ export const connectorDetails = { | |
bank_name: "", | ||
bank_account_bic: "", | ||
bank_account_iban: "", | ||
preferred_language: "en", | ||
country: "DE", | ||
}, | ||
}, | ||
|
@@ -493,6 +492,33 @@ export const connectorDetails = { | |
}, | ||
}, | ||
}, | ||
przelewy24: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "przelewy24", | ||
payment_method_data: { | ||
bank_redirect: { | ||
przelewy24: { | ||
bank_name: "citi", | ||
billing_details: { | ||
email: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 400, | ||
body: { | ||
error: { | ||
type: "invalid_request", | ||
message: "Payment method type not supported", | ||
code: "HE_03", | ||
reason: "automatic for przelewy24 is not supported by adyen", | ||
}, | ||
}, | ||
}, | ||
}, | ||
blik: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -481,6 +481,22 @@ export const connectorDetails = { | |
}, | ||
}, | ||
}), | ||
przelewy24: getCustomExchange({ | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "przelewy24", | ||
payment_method_data: { | ||
bank_redirect: { | ||
przelewy24: { | ||
bank_name: "citi", | ||
billing_details: { | ||
email: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}), | ||
blikPaymentIntent: getCustomExchange({ | ||
Request: { | ||
currency: "PLN", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { getCustomExchange } from "./Commons"; | ||
|
||
const successfulTestCard = "4242424242424242"; | ||
const successful3DSCard = "4000002760003184"; | ||
|
||
|
@@ -370,4 +372,137 @@ export const connectorDetails = { | |
}, | ||
}, | ||
}, | ||
bank_redirect_pm: { | ||
PaymentIntent: getCustomExchange({ | ||
Request: { | ||
currency: "EUR", | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_payment_method", | ||
}, | ||
}, | ||
}), | ||
ideal: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "ideal", | ||
payment_method_data: { | ||
bank_redirect: { | ||
ideal: { | ||
bank_name: "ing", | ||
country: "NL", | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_customer_action", | ||
}, | ||
}, | ||
}, | ||
giropay: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "giropay", | ||
payment_method_data: { | ||
bank_redirect: { | ||
giropay: { | ||
country: "DE", | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_customer_action", | ||
}, | ||
}, | ||
}, | ||
sofort: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "sofort", | ||
payment_method_data: { | ||
bank_redirect: { | ||
sofort: { | ||
country: "DE", | ||
preferred_language: "en", | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_customer_action", | ||
}, | ||
}, | ||
}, | ||
eps: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "eps", | ||
payment_method_data: { | ||
bank_redirect: { | ||
eps: { | ||
bank_name: "bank_austria", | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_customer_action", | ||
}, | ||
}, | ||
}, | ||
blik: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "blik", | ||
payment_method_data: { | ||
bank_redirect: { | ||
blik: { | ||
blik_code: "777987", | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "failed", | ||
error_code: "payment_intent_invalid_parameter", | ||
}, | ||
}, | ||
}, | ||
przelewy24: { | ||
Request: { | ||
payment_method: "bank_redirect", | ||
payment_method_type: "przelewy24", | ||
payment_method_data: { | ||
bank_redirect: { | ||
przelewy24: { | ||
bank_name: "citi", | ||
billing_details: { | ||
email: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
Response: { | ||
status: 200, | ||
body: { | ||
status: "requires_customer_action", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters