Skip to content

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

ci(cypress): add step up retries (#11774)

likhinbopannaf94b38ffc90f
diff --git a/.github/data/gateway_status_map.csv b/.github/data/gateway_status_map.csv
index 9ba77264ca..1cc5bda5e6 100644
--- a/.github/data/gateway_status_map.csv
+++ b/.github/data/gateway_status_map.csv
@@ -1,27 +1,28 @@
connector,flow,sub_flow,code,message,status,router_error,decision,created_at,last_modified,step_up_possible,unified_code,unified_message,error_category,clear_pan_possible,feature_data,feature,standardised_code,description,user_guidance_message
-adyen,Payment,Authorize,2,Refused,failure,,retry,2025-12-08 14:59:10,2026-01-05 18:50:40,FALSE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
-adyen,Payment,CompleteAuthorize,2,Refused,failure,,retry,2025-12-08 15:04:35,2026-01-05 18:50:41,FALSE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
-adyen,Payment,PSync,2,Refused,failure,,retry,2025-12-08 15:01:32,2026-01-05 18:50:40,FALSE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
-adyen,Payment,SetupMandate,2,Refused,failure,,retry,2025-12-08 15:03:03,2026-01-05 18:50:40,FALSE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
-stripe,Payment,Authorize,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:36:57,2026-01-05 19:13:24,FALSE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
-stripe,Payment,CompleteAuthorize,card_declined,Your card was declined.,failure,,do_default,2025-12-08 18:00:44,2026-01-05 19:13:25,FALSE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
-stripe,Payment,PSync,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:39:08,2026-01-05 19:13:24,FALSE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
-stripe,Payment,SetupMandate,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:40:40,2026-01-05 19:13:24,FALSE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
-stripe,Payment,Authorize,Network:Visa|IssuerCode:01,Network:Visa|IssuerCode:01,failure,,retry,2026-03-24 05:49:43,2026-04-01 14:17:19,false,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
-cybersource,Payment,Authorize,INVALID_DATA,Declined - One or more fields in the request contains invalid data,failure,,retry,2025-12-02 07:40:16,2026-03-11 08:34:41,false,UE_1000,Issue with Payment Method details,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
-airwallex,Payment,Authorize,validation_error,invalid pan,failure,,retry,2026-03-11 11:36:29,2026-03-11 11:36:29,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-authorizedotnet,Payment,Authorize,2,This transaction has been declined.,failure,,retry,2025-12-02 07:40:07,2026-03-11 11:51:52,false,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
-nuvei,Payment,Authorize,-1,Decline,failure,,retry,2026-03-11 11:58:42,2026-03-11 11:58:42,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-paypal,Payment,Authorize,0500,DO_NOT_HONOR.,failure,,retry,2026-03-16 09:47:18,2026-03-16 09:47:18,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-trustpay,Payment,Authorize,85,the card is not enrolled for a supported 3DS version,failure,,retry,2026-03-16 09:53:07,2026-03-16 09:53:18,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-checkout,Payment,Authorize,2005C,Transaction not supported/blocked by issuer,failure,,retry,2026-03-16 10:48:43,2026-03-16 10:48:43,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-finix,Payment,Authorize,DO_NOT_HONOR,The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.,failure,,retry,2026-03-16 11:02:08,2026-03-16 11:02:08,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-fiuu,Payment,Authorize,05,Do not honor,failure,,retry,2026-03-16 11:25:15,2026-03-16 11:25:15,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-nmi,Payment,Authorize,200,DECLINE,failure,,retry,2025-12-02 07:40:50,2025-12-24 09:05:16,false,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
-bankofamerica,Payment,Authorize,INVALID_DATA,INVALID_DATA,failure,,retry,2025-12-02 07:40:24,2026-03-16 12:06:28,false,UE_4000,Issue with Integration,processor_decline_incorrect_data,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,missing_or_invalid_param,Missing or invalid parameter,Something went wrong. Try another payment method or contact your bank
-datatrans,Payment,Authorize,DECLINED,Declined,failure,,retry,2026-03-16 12:10:53,2026-03-16 12:10:53,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-globalpay,Payment,Authorize,111,(111)[ test system ] Strong Customer Authentication Required,failure,,retry,2026-03-16 12:17:22,2026-03-16 12:17:22,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-nexinets,Payment,Authorize,12000,Could not process request,failure,,retry,2026-03-16 12:22:35,2026-03-16 12:22:35,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-powertranz,Payment,Authorize,05,Do Not Honor,failure,,retry,2026-03-16 12:26:45,2026-03-16 12:26:45,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-shift4,Payment,Authorize,invalid_number,"Your request was in test mode, but used a non test card. For a list of valid test cards, visit our doc site.",failure,,retry,2026-03-16 13:42:10,2026-03-16 13:42:10,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-worldpayvantiv,Payment,Authorize,1,Invalid credentials. Contact [email protected].,failure,,retry,2026-03-16 13:45:41,2026-03-16 13:45:41,false,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": false, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
\ No newline at end of file
+adyen,Payment,Authorize,2,Refused,failure,,retry,2025-12-08 14:59:10,2026-01-05 18:50:40,TRUE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
+adyen,Payment,CompleteAuthorize,2,Refused,failure,,retry,2025-12-08 15:04:35,2026-01-05 18:50:41,TRUE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
+adyen,Payment,PSync,2,Refused,failure,,retry,2025-12-08 15:01:32,2026-01-05 18:50:40,TRUE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
+adyen,Payment,SetupMandate,2,Refused,failure,,retry,2025-12-08 15:03:03,2026-01-05 18:50:40,TRUE,UE_3000,Technical issue with PSP,issue_with_payment_method,FALSE,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,psp_acquirer_error,Temporary acquirer internal error,Something went wrong. Try again or contact your bank
+stripe,Payment,Authorize,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:36:57,2026-01-05 19:13:24,TRUE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
+stripe,Payment,CompleteAuthorize,card_declined,Your card was declined.,failure,,do_default,2025-12-08 18:00:44,2026-01-05 19:13:25,TRUE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
+stripe,Payment,PSync,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:39:08,2026-01-05 19:13:24,TRUE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
+stripe,Payment,SetupMandate,card_declined,Your card was declined.,failure,,do_default,2025-12-02 13:40:40,2026-01-05 19:13:24,TRUE,UE_1000,Issue with Payment Method details,,FALSE,"{""retry"": {""decision"": ""do_default"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
+stripe,Payment,Authorize,Network:Visa|IssuerCode:01,Network:Visa|IssuerCode:01,failure,,retry,2026-03-24 05:49:43,2026-04-01 14:17:19,TRUE,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
+cybersource,Payment,Authorize,INVALID_DATA,Declined - One or more fields in the request contains invalid data,failure,,retry,2025-12-02 07:40:16,2026-03-11 08:34:41,TRUE,UE_1000,Issue with Payment Method details,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,payment_method_issue,Issue with Payment Method details,Issue with Payment Method details
+airwallex,Payment,Authorize,validation_error,invalid pan,failure,,retry,2026-03-11 11:36:29,2026-03-11 11:36:29,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+authorizedotnet,Payment,Authorize,2,This transaction has been declined.,failure,,retry,2025-12-02 07:40:07,2026-03-11 11:51:52,TRUE,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
+nuvei,Payment,Authorize,-1,Decline,failure,,retry,2026-03-11 11:58:42,2026-03-11 11:58:42,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+paypal,Payment,Authorize,0500,DO_NOT_HONOR.,failure,,retry,2026-03-16 09:47:18,2026-03-16 09:47:18,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+trustpay,Payment,Authorize,85,the card is not enrolled for a supported 3DS version,failure,,retry,2026-03-16 09:53:07,2026-03-16 09:53:18,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+checkout,Payment,Authorize,2005C,Transaction not supported/blocked by issuer,failure,,retry,2026-03-16 10:48:43,2026-03-16 10:48:43,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+finix,Payment,Authorize,DO_NOT_HONOR,The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.,failure,,retry,2026-03-16 11:02:08,2026-03-16 11:02:08,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+fiuu,Payment,Authorize,05,Do not honor,failure,,retry,2026-03-16 11:25:15,2026-03-16 11:25:15,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+nmi,Payment,Authorize,200,DECLINE,failure,,retry,2025-12-02 07:40:50,2025-12-24 09:05:16,TRUE,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
+bankofamerica,Payment,Authorize,INVALID_DATA,INVALID_DATA,failure,,retry,2025-12-02 07:40:24,2026-03-16 12:06:28,TRUE,UE_4000,Issue with Integration,processor_decline_incorrect_data,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,missing_or_invalid_param,Missing or invalid parameter,Something went wrong. Try another payment method or contact your bank
+datatrans,Payment,Authorize,DECLINED,Declined,failure,,retry,2026-03-16 12:10:53,2026-03-16 12:10:53,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+globalpay,Payment,Authorize,111,(111)[ test system ] Strong Customer Authentication Required,failure,,retry,2026-03-16 12:17:22,2026-03-16 12:17:22,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+nexinets,Payment,Authorize,12000,Could not process request,failure,,retry,2026-03-16 12:22:35,2026-03-16 12:22:35,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+powertranz,Payment,Authorize,05,Do Not Honor,failure,,retry,2026-03-16 12:26:45,2026-03-16 12:26:45,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+shift4,Payment,Authorize,invalid_number,"Your request was in test mode, but used a non test card. For a list of valid test cards, visit our doc site.",failure,,retry,2026-03-16 13:42:10,2026-03-16 13:42:10,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+worldpay,Payment,Authorize,13,INVALID AMOUNT,failure,,retry,2026-05-07 00:00:00,2026-05-07 00:00:00,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+worldpayvantiv,Payment,Authorize,1,Invalid credentials. Contact [email protected].,failure,,retry,2026-03-16 13:45:41,2026-03-16 13:45:41,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index 95e907a230..6646965c13 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -555,6 +555,27 @@ export const CONNECTOR_LISTS = {
CARD_TESTING_GUARD: ["bankofamerica"],
L2L3DATA: ["checkout", "nuvei", "worldpayvantiv"],
REFUND_MANUAL_UPDATE: ["bankofamerica", "cybersource"],
+ STEP_UP_RETRY: [
+ "cybersource",
+ "checkout",
+ "stripe",
+ "adyen",
+ "airwallex",
+ "authorizedotnet",
+ "bankofamerica",
+ "datatrans",
+ "fiuu",
+ "globalpay",
+ "nexinets",
+ "nmi",
+ "nuvei",
+ "paypal",
+ "powertranz",
+ "shift4",
+ "trustpay",
+ "worldpay",
+ "worldpayvantiv",
+ ],
// Add more inclusion lists
},
};
diff --git a/cypress-tests/cypress/e2e/spec/Payment/46-StepUpRetries.cy.js b/cypress-tests/cypress/e2e/spec/Payment/46-StepUpRetries.cy.js
new file mode 100644
index 0000000000..c6290d1efa
--- /dev/null
+++ b/cypress-tests/cypress/e2e/spec/Payment/46-StepUpRetries.cy.js
@@ -0,0 +1,260 @@
+import * as fixtures from "../../../fixtures/imports";
+import State from "../../../utils/State";
+import getConnectorDetails, * as utils from "../../configs/Payment/Utils";
+
+let globalState;
+
+describe("Step-Up Retry Tests", () => {
+ before("seed global state", () => {
+ cy.task("getGlobalState").then((state) => {
+ globalState = new State(state);
+ });
+ });
+
+ after("flush global state", () => {
+ cy.task("setGlobalState", globalState.data);
+ });
+
+ context(
+ "Step-Up Retry Enabled - Payment fails without 3DS and retries with 3DS",
+ () => {
+ it("Setup Step-Up Config -> Create Payment Intent -> Confirm Payment without 3DS -> Verify Step-Up Retry with 3DS -> Retrieve Payment", () => {
+ let shouldContinue = true;
+ const connectorId = globalState.get("connectorId");
+
+ cy.step("Check if connector supports Step-Up retry", () => {
+ if (
+ utils.shouldIncludeConnector(
+ connectorId,
+ utils.CONNECTOR_LISTS.INCLUDE.STEP_UP_RETRY
+ )
+ ) {
+ cy.log(
+ `Skipping Step-Up Retry - connector not supported: ${connectorId}`
+ );
+ shouldContinue = false;
+ return;
+ }
+ });
+
+ cy.step("Setup Step-Up enabled configuration", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Setup Step-Up Config");
+ return;
+ }
+
+ const merchantId = globalState.get("merchantId");
+ const key = `step_up_enabled_${merchantId}`;
+ const value = JSON.stringify([connectorId]);
+
+ cy.setConfigs(globalState, key, value, "CREATE");
+
+ // Set flag indicating Step-Up retry is enabled for assertion validation
+ globalState.set("isStepUpRetryEnabled", true);
+
+ // For Step-Up retry, set secondary connector to same as primary
+ // since retry happens on the same connector with 3DS
+ globalState.set("secondaryConnector", connectorId);
+ });
+
+ cy.step("Enable auto retries for business profile", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Enable auto retries");
+ return;
+ }
+
+ const updateBusinessProfileBody = {
+ is_auto_retries_enabled: true,
+ max_auto_retries_enabled: 1,
+ };
+
+ cy.UpdateBusinessProfileTest(
+ updateBusinessProfileBody,
+ false, // is_connector_agnostic_enabled
+ false, // collect_billing_address_from_wallet_connector
+ false, // collect_shipping_address_from_wallet_connector
+ false, // always_collect_billing_address_from_wallet_connector
+ false, // always_collect_shipping_address_from_wallet_connector
+ globalState
+ );
+
+ globalState.set("max_auto_retries_enabled", 1);
+ });
+
+ cy.step("Create Payment Intent", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Create Payment Intent");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["PaymentIntent"];
+
+ cy.createPaymentIntentTest(
+ fixtures.createPaymentBody,
+ data,
+ "no_three_ds",
+ "automatic",
+ globalState
+ );
+
+ if (!utils.should_continue_further(data)) {
+ shouldContinue = false;
+ }
+ });
+
+ cy.step("Confirm Payment without 3DS to trigger Step-Up retry", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Confirm Payment");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["No3DSFailPayment"];
+
+ cy.confirmCallAutoRetryTest(
+ fixtures.confirmBody,
+ data,
+ true,
+ globalState
+ );
+ });
+
+ cy.step("Retrieve Payment and verify Step-Up retry attempts", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Retrieve Payment");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["No3DSFailPayment"];
+
+ cy.retrievePaymentCallAutoRetryTest({
+ globalState,
+ data,
+ });
+ });
+ });
+ }
+ );
+
+ context("Step-Up Retry Disabled - Payment fails without retry", () => {
+ it("Disable Step-Up Config -> Create Payment Intent -> Confirm Payment without 3DS -> Verify no retry occurred -> Retrieve Payment", () => {
+ let shouldContinue = true;
+ const connectorId = globalState.get("connectorId");
+
+ cy.step("Check if connector supports Step-Up retry", () => {
+ if (
+ utils.shouldIncludeConnector(
+ connectorId,
+ utils.CONNECTOR_LISTS.INCLUDE.STEP_UP_RETRY
+ )
+ ) {
+ cy.log(
+ `Skipping Step-Up Retry Disabled test - connector not supported: ${connectorId}`
+ );
+ shouldContinue = false;
+ return;
+ }
+ });
+
+ cy.step("Ensure Step-Up is disabled", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Disable Step-Up Config");
+ return;
+ }
+
+ const merchantId = globalState.get("merchantId");
+ const key = `step_up_enabled_${merchantId}`;
+
+ // Delete or set empty config to disable Step-Up
+ cy.setConfigs(globalState, key, "[]", "UPDATE");
+
+ // Set flag indicating Step-Up retry is disabled
+ globalState.set("isStepUpRetryEnabled", false);
+
+ // Clear secondary connector since we're not doing retries
+ globalState.set("secondaryConnector", null);
+ });
+
+ cy.step("Update Business Profile - disable auto retries", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Update Business Profile");
+ return;
+ }
+
+ const updateBusinessProfileBody = {
+ is_auto_retries_enabled: false,
+ max_auto_retries_enabled: 0,
+ };
+
+ cy.UpdateBusinessProfileTest(
+ updateBusinessProfileBody,
+ false, // is_connector_agnostic_enabled
+ false, // collect_billing_address_from_wallet_connector
+ false, // collect_shipping_address_from_wallet_connector
+ false, // always_collect_billing_address_from_wallet_connector
+ false, // always_collect_shipping_address_from_wallet_connector
+ globalState
+ );
+
+ globalState.set("max_auto_retries_enabled", 0);
+ });
+
+ cy.step("Create Payment Intent", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Create Payment Intent");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["PaymentIntent"];
+
+ cy.createPaymentIntentTest(
+ fixtures.createPaymentBody,
+ data,
+ "no_three_ds",
+ "automatic",
+ globalState
+ );
+
+ if (!utils.should_continue_further(data)) {
+ shouldContinue = false;
+ }
+ });
+
+ cy.step("Confirm Payment without 3DS - should fail without retry", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Confirm Payment");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["No3DSFailPayment"];
+
+ cy.confirmCallAutoRetryTest(
+ fixtures.confirmBody,
+ data,
+ true,
+ globalState
+ );
+ });
+
+ cy.step("Retrieve Payment and verify no retry occurred", () => {
+ if (!shouldContinue) {
+ cy.task("cli_log", "Skipping step: Retrieve Payment");
+ return;
+ }
+
+ const data =
+ getConnectorDetails(connectorId)["card_pm"]["No3DSFailPayment"];
+
+ // Verify that no retry occurred - only 1 attempt, final status failed
+ cy.retrievePaymentCallAutoRetryTest({
+ globalState,
+ data,
+ });
+ });
+ });
+ });
+});
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index d110a1db22..16e3364bfd 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -3541,6 +3541,11 @@ Cypress.Commands.add(
const baseUrl = globalState.get("baseUrl");
const apiKey = globalState.get("apiKey");
const maxRetries = globalState.get("max_auto_retries_enabled");
+
+ // Check if Step-Up retry is enabled from globalState flag
+ const isStepUpRetryEnabled =
+ globalState.get("isStepUpRetryEnabled") || false;
+
const url = `${baseUrl}/payments/${paymentId}?force_sync=true&expand_attempts=true`;
cy.request({
@@ -3580,6 +3585,39 @@ Cypress.Commands.add(
expect(attemptObj.attempt_id).to.include(paymentId);
expect(attemptObj.connector).to.not.be.null;
});
+
+ // Step-Up Retry specific assertions
+ if (isStepUpRetryEnabled) {
+ // Should have 2 attempts for Step-Up retry
+ expect(
+ response.body.attempts.length,
+ "Step-Up retry should have 2 attempts"
+ ).to.equal(2);
+
+ // Find the three_ds attempt (Step-Up retry)
+ const threeDsAttempt = response.body.attempts.find(
+ (a) => a.authentication_type === "three_ds"
+ );
+ expect(
+ threeDsAttempt,
+ "At least one attempt should be three_ds for Step-Up retry"
+ ).to.not.be.undefined;
+
+ expect(
+ response.body.status,
+ "Payment status should be requires_customer_action, processing, or failed after Step-Up retry"
+ ).to.satisfy((status) =>
+ ["requires_customer_action", "processing", "failed"].includes(
+ status
+ )
+ );
+ } else if (!isStepUpRetryEnabled && maxRetries === 0) {
+ // No retries and no Step-Up - only 1 attempt expected
+ expect(
+ response.body.attempts.length,
+ "No retry should have only 1 attempt"
+ ).to.equal(1);
+ }
}
});
}