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

fix(postman): update expected status from `processing` to `requires_capture` in payment confirmation tests (#7458)

Arindam Sahooce84bb9245d6
diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Save card payment with manual capture/Save card payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Save card payment with manual capture/Save card payments - Confirm/event.test.js
index eedc017da1..df0080dff2 100644
--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Save card payment with manual capture/Save card payments - Confirm/event.test.js
+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Save card payment with manual capture/Save card payments - Confirm/event.test.js
@@ -63,12 +63,12 @@ if (jsonData?.client_secret) {
);
}
-// Response body should have value "processing" for "status"
+// Response body should have value "requires_capture" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'",
+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'requires_capture'",
function () {
- pm.expect(jsonData.status).to.eql("processing");
+ pm.expect(jsonData.status).to.eql("requires_capture");
},
);
}
diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js
index e13c466cc2..2043a80f57 100644
--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js
+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js
@@ -65,9 +65,9 @@ if (jsonData?.client_secret) {
// Response body should have value "requires_capture" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments - Content check if value for 'status' matches 'processing'",
+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",
function () {
- pm.expect(jsonData.status).to.eql("processing");
+ pm.expect(jsonData.status).to.eql("requires_capture");
},
);
}
diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js
index cee98b477b..d683186aa0 100644
--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js
+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js
@@ -63,9 +63,9 @@ if (jsonData?.client_secret) {
// Response body should have value "requires_capture" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments - Content check if value for 'status' matches 'processing'",
+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",
function () {
- pm.expect(jsonData.status).to.eql("processing");
+ pm.expect(jsonData.status).to.eql("requires_capture");
},
);
}
diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js
index d03ed16ff5..b7a6220b0f 100644
--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js
+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js
@@ -20,10 +20,10 @@ pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {
pm.response.to.have.jsonBody();
});
-//// Response body should have value "processing" for "status"
+//// Response body should have value "requires_capture" for "status"
if (jsonData?.status) {
-pm.test("[POST]::/payments - Content check if value for 'status' matches 'processing'", function() {
- pm.expect(jsonData.status).to.eql("processing");
+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_capture'", function() {
+ pm.expect(jsonData.status).to.eql("requires_capture");
})};
diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js
index cee98b477b..d683186aa0 100644
--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js
+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js
@@ -63,9 +63,9 @@ if (jsonData?.client_secret) {
// Response body should have value "requires_capture" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments - Content check if value for 'status' matches 'processing'",
+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",
function () {
- pm.expect(jsonData.status).to.eql("processing");
+ pm.expect(jsonData.status).to.eql("requires_capture");
},
);
}