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

chore(postman): update Postman collection files

github-actions130187a352a0
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);",
" },",
" );",
"}"