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(postman): Change assertion status from cancelled to succeeded for checkout (#2155)

Pa1NarK93e7cd9bf040
diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Cancel After Partial Capture/Payments - Cancel/event.test.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Cancel After Partial Capture/Payments - Cancel/event.test.js
index 2c8e84e300..edeeb5a7b2 100644
--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Cancel After Partial Capture/Payments - Cancel/event.test.js
+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Cancel After Partial Capture/Payments - Cancel/event.test.js
@@ -50,12 +50,19 @@ if (jsonData?.client_secret) {
);
}
-// 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);
+ } )
+}