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

test(postman): update postman collection files

github-actions089bb64e2145
diff --git a/postman/collection-json/checkout.postman_collection.json b/postman/collection-json/checkout.postman_collection.json
index d25e2aa07a..8c01d10c23 100644
--- a/postman/collection-json/checkout.postman_collection.json
+++ b/postman/collection-json/checkout.postman_collection.json
@@ -7238,15 +7238,22 @@
" );",
"}",
"",
- "// Response body should have value \"connector error\" for \"error type\"",
+ "// Response body should have value \"cancellation succeeded\" for \"payment status\"",
"if (jsonData?.status) {",
" pm.test(",
- " \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'cancelled'\",",
+ " \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'succeeded'\",",
" function () {",
- " pm.expect(jsonData.status).to.eql(\"cancelled\");",
+ " pm.expect(jsonData.status).to.eql(\"succeeded\");",
" },",
" );",
"}",
+ "",
+ "// Response body should have value \"0\" for \"amount_capturable\"",
+ "if (jsonData?.amount){",
+ " pm.test(\"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'\", function() {",
+ " pm.expect(jsonData.amount_capturable).to.eql(0);",
+ " } )",
+ "} ",
""
],
"type": "text/javascript"