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-actionsa7d04873d63c
diff --git a/postman/collection-json/cybersource.postman_collection.json b/postman/collection-json/cybersource.postman_collection.json
index c6c2a612e9..630020dab9 100644
--- a/postman/collection-json/cybersource.postman_collection.json
+++ b/postman/collection-json/cybersource.postman_collection.json
@@ -18200,9 +18200,9 @@
"listen": "test",
"script": {
"exec": [
- "// Validate status 4xx",
- "pm.test(\"[POST]::/payments - Status code is 4xx\", function () {",
- " pm.response.to.be.error;",
+ "// Validate status 2xx",
+ "pm.test(\"[POST]::/payments - Status code is 2xx\", function () {",
+ " pm.response.to.be.success;",
"});",
"",
"// Validate if response header has matching content-type",
@@ -18249,20 +18249,15 @@
" );",
"}",
"",
- "// Response body should have value \"connector error\" for \"error type\"",
- "if (jsonData?.error?.type) {",
+ "// Response body should have value \"requires_payment_method\" for \"status\"",
+ "if (jsonData?.status) {",
" pm.test(",
- " \"[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'\",",
+ " \"[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'\",",
" function () {",
- " pm.expect(jsonData.error.type).to.eql(\"invalid_request\");",
+ " pm.expect(jsonData.status).to.eql(\"requires_payment_method\");",
" },",
" );",
"}",
- "",
- "pm.test(\"[POST]::/payments - Content check if value for 'error.message' matches 'setup_future_usage` cannot be `off_session` for normal payments\", function () {",
- " pm.expect(jsonData.error.message).to.eql(\"`setup_future_usage` cannot be `off_session` for normal payments\");",
- "});",
- "",
""
],
"type": "text/javascript"