Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(cypress): fix paybox cypress tests (#14021)
Vasanth97b83ec7dd58
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js b/cypress-tests/cypress/e2e/configs/Payment/Paybox.jsindex e068e6f225..45f5b63932 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Paybox.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Paybox.js@@ -1,3 +1,11 @@+import {+ blockedPaymentErrorBodyForBinUnavailable,+ blockedPaymentErrorBodyForCardSubtype,+ blockedPaymentErrorBodyForDebitCard,+ blockedPaymentErrorBodyForIssuingCountry,+} from "./Commons";+import { getCustomExchange } from "./Modifiers";+const successfulNo3DSCardDetails = {card_number: "1111222233334444",card_exp_month: "05",@@ -141,6 +149,12 @@ export const connectorDetails = {},},"3DSManualCapture": {+ // Paybox preprod merchant is not 3DS-enrolled (StatusPBX 'Commerce non 3DSecure',+ // error_code 00041 'PAYBOX : ID3D inconnu'); remove this skip when a real+ // 3DS-enrolled merchant_id is supplied in creds.json key2.+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -160,6 +174,12 @@ export const connectorDetails = {},},"3DSAutoCapture": {+ // Paybox preprod merchant is not 3DS-enrolled (StatusPBX 'Commerce non 3DSecure',+ // error_code 00041 'PAYBOX : ID3D inconnu'); remove this skip when a real+ // 3DS-enrolled merchant_id is supplied in creds.json key2.+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -243,6 +263,7 @@ export const connectorDetails = {},},SyncRefund: {+ // Paybox preprod sandbox refunds do not settle synchronously.Response: {status: 200,body: {@@ -426,6 +447,11 @@ export const connectorDetails = {},},MITAutoCapture: {+ // Zero-auth mandates stay `processing`, so the saved payment method+ // remains `inactive` on retrieve even after a successful MIT payment.+ Configs: {+ skipPaymentMethodStatusAssertion: true,+ },Request: {currency: "EUR",amount: 6000,@@ -530,6 +556,12 @@ export const connectorDetails = {},},PaymentMethodIdMandate3DSManualCapture: {+ // Paybox preprod merchant is not 3DS-enrolled (StatusPBX 'Commerce non 3DSecure',+ // error_code 00041 'PAYBOX : ID3D inconnu'); remove this skip when a real+ // 3DS-enrolled merchant_id is supplied in creds.json key2.+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {amount: 6000,payment_method: "card",@@ -549,6 +581,11 @@ export const connectorDetails = {},},ZeroAuthMandate: {+ // Zero-auth CIT stays `processing`, so the generic retrieve check's+ // inferred `payment_method_status` can never match for paybox.+ Configs: {+ skipPaymentMethodStatusAssertion: true,+ },Request: {amount: 0,payment_method: "card",@@ -809,4 +846,78 @@ export const connectorDetails = {},},},+ payment_method_blocking_pm: {+ // Paybox routing rejects non-French billing with IR_39 before the+ // blocklist guard runs, so these confirms override the Commons configs+ // (which leave billing to the US-billing confirm fixture) with French+ // billing.+ BlockIssuingCountry: getCustomExchange({+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: {+ card_number: "4000000000000002",+ card_exp_month: "03",+ card_exp_year: "30",+ card_holder_name: "joseph Doeeee",+ card_cvc: "737",+ card_network: "Visa",+ },+ },+ billing: billingData,+ },+ Response: blockedPaymentErrorBodyForIssuingCountry,+ }),+ BlockCardType: getCustomExchange({+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: {+ card_number: "4111111111111111",+ card_exp_month: "03",+ card_exp_year: "30",+ card_holder_name: "joseph Doeeee",+ card_cvc: "737",+ card_network: "Visa",+ },+ },+ billing: billingData,+ },+ Response: blockedPaymentErrorBodyForDebitCard,+ }),+ BlockCardSubtype: getCustomExchange({+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: {+ card_number: "378282246310005",+ card_exp_month: "03",+ card_exp_year: "30",+ card_holder_name: "joseph Doeeee",+ card_cvc: "737",+ card_network: "Visa",+ },+ },+ billing: billingData,+ },+ Response: blockedPaymentErrorBodyForCardSubtype,+ }),+ BlockIfBinInfoUnavailable: getCustomExchange({+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: {+ card_number: "6304000000000000",+ card_exp_month: "03",+ card_exp_year: "30",+ card_holder_name: "joseph Doeeee",+ card_cvc: "737",+ card_network: "Visa",+ },+ },+ billing: billingData,+ },+ Response: blockedPaymentErrorBodyForBinUnavailable,+ }),+ },};