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
ci(cypress): fix card payment block for `redsys` and `fiuu` (#11740)
likhinbopanna6bcc4dad810d
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.jsindex ef73ee8bc4..96416a866b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js@@ -59,6 +59,19 @@ const billingAddress = {email: "[email protected]",};+const blockedPaymentErrorBody = {+ status: 200,+ expectBlockedPayment: true,+ body: {+ error: {+ type: "blocked",+ message: "This payment method is blocked",+ code: "HE_03",+ reason: "Blocked",+ },+ },+};+const requiredFields = {payment_methods: [{@@ -764,6 +777,7 @@ export const connectorDetails = {payment_method_data: {card: successfulNo3DSCardDetails,},+ currency: "MYR",billing: billingAddress,mandate_data: null,customer_acceptance: customerAcceptance,@@ -983,4 +997,78 @@ export const connectorDetails = {source: "paymentAttemptID",},},+ payment_method_blocking_pm: {+ BlockIssuingCountry: {+ 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: billingAddress,+ currency: "MYR",+ },+ Response: blockedPaymentErrorBody,+ },+ BlockCardType: {+ 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: billingAddress,+ currency: "MYR",+ },+ Response: blockedPaymentErrorBody,+ },+ BlockCardSubtype: {+ 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",+ },+ },+ currency: "MYR",+ billing: billingAddress,+ },+ Response: blockedPaymentErrorBody,+ },+ BlockIfBinInfoUnavailable: {+ 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: billingAddress,+ currency: "MYR",+ },+ Response: blockedPaymentErrorBody,+ },+ },};diff --git a/cypress-tests/cypress/e2e/configs/Payment/Redsys.js b/cypress-tests/cypress/e2e/configs/Payment/Redsys.jsindex 35a7719681..5f19a18cef 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Redsys.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Redsys.js@@ -16,6 +16,19 @@ const threeDSFrictionlessTestCardDetails = {card_cvc: "123",};+const blockedPaymentErrorBody = {+ status: 200,+ expectBlockedPayment: true,+ body: {+ error: {+ type: "blocked",+ message: "This payment method is blocked",+ code: "HE_03",+ reason: "Blocked",+ },+ },+};+const Address = {address: {line1: "1467",@@ -523,4 +536,82 @@ export const connectorDetails = {},},},+ payment_method_blocking_pm: {+ BlockIssuingCountry: {+ 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: Address,+ shipping: Address,+ currency: "EUR",+ },+ Response: blockedPaymentErrorBody,+ },+ BlockCardType: {+ 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: Address,+ shipping: Address,+ currency: "EUR",+ },+ Response: blockedPaymentErrorBody,+ },+ BlockCardSubtype: {+ 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: Address,+ shipping: Address,+ currency: "EUR",+ },+ Response: blockedPaymentErrorBody,+ },+ BlockIfBinInfoUnavailable: {+ 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: Address,+ shipping: Address,+ currency: "EUR",+ },+ Response: blockedPaymentErrorBody,+ },+ },};