From 130187a352a0a899c45f5e57354eef91ec9ebffd Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 00:42:07 +0000 Subject: [PATCH] chore(postman): update Postman collection files --- .../checkout.postman_collection.json | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/postman/collection-json/checkout.postman_collection.json b/postman/collection-json/checkout.postman_collection.json index 18fd5efa14..e32d4955ee 100644 --- a/postman/collection-json/checkout.postman_collection.json +++ b/postman/collection-json/checkout.postman_collection.json @@ -2946,22 +2946,27 @@ " );", "}", "", - "// Response body should have value \"24\" for \"error_code\"", + "// Allow both legacy and new CVV error codes", + "const allowedErrors = [\"cvv_invalid\", \"card_cvv_length_invalid\"];", + "", + "// Validate error_code field if present in response", "if (jsonData?.error_code) {", " pm.test(", - " \"[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches 'cvv_invalid'\",", + " \"[POST]::/payments/:id/confirm - Validate error_code for invalid CVV\",", " function () {", - " pm.expect(jsonData.error_code).to.eql(\"cvv_invalid\");", + " // Check that returned error_code is one of the allowed CVV error variants", + " pm.expect(allowedErrors).to.include(jsonData.error_code);", " },", " );", "}", "", - "// Response body should have value \"24\" for \"error_message\"", + "// Validate error_message field if present in response", "if (jsonData?.error_message) {", " pm.test(", - " \"[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'cvv_invalid'\",", + " \"[POST]::/payments/:id/confirm - Validate error_message for invalid CVV\",", " function () {", - " pm.expect(jsonData.error_message).to.eql(\"cvv_invalid\");", + " // Check that returned error_message matches expected CVV error variants", + " pm.expect(allowedErrors).to.include(jsonData.error_message);", " },", " );", "}"