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

revert(postman): postman tests for bluesnap and stripe failure scenarios (#10527)

Vasanthd84e66b88cbb
diff --git a/postman/collection-dir/bluesnap/Flow Testcases/Happy Cases/Scenario11-Pass Invalid CVV for save card flow and verify failed payment Copy/Save card payments - Confirm/event.test.js b/postman/collection-dir/bluesnap/Flow Testcases/Happy Cases/Scenario11-Pass Invalid CVV for save card flow and verify failed payment Copy/Save card payments - Confirm/event.test.js
index 999f2e57ac..680f985502 100644
--- a/postman/collection-dir/bluesnap/Flow Testcases/Happy Cases/Scenario11-Pass Invalid CVV for save card flow and verify failed payment Copy/Save card payments - Confirm/event.test.js
+++ b/postman/collection-dir/bluesnap/Flow Testcases/Happy Cases/Scenario11-Pass Invalid CVV for save card flow and verify failed payment Copy/Save card payments - Confirm/event.test.js
@@ -97,7 +97,7 @@ if (jsonData?.error_message) {
pm.test(
"[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'Order creation failure due to problematic input. & There is a mismatch between the Credit Card American Express and Security Code. '",
function () {
- pm.expect(jsonData.error_message).to.eql("VALIDATION_GENERAL_FAILURE");
+ pm.expect(jsonData.error_message).to.eql("Order creation failure due to problematic input. & There is a mismatch between the Credit Card American Express and Security Code. ");
},
);
}
\ No newline at end of file
diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.js
index 47cbdf238f..2be75ec008 100644
--- a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.js
+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.js
@@ -89,12 +89,12 @@ if (jsonData?.error_code) {
);
}
-// Response body should have value "Your card has insufficient funds." for "error_message"
+// Response body should have value "message - Your card has insufficient funds., decline_code - insufficient_funds" for "error_message"
if (jsonData?.error_message) {
pm.test(
- "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'Your card has insufficient funds.'",
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'message - Your card has insufficient funds., decline_code - insufficient_funds'",
function () {
- pm.expect(jsonData.error_message).to.eql("Your card has insufficient funds.");
+ pm.expect(jsonData.error_message).to.eql("message - Your card has insufficient funds., decline_code - insufficient_funds");
},
);
}
diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js
index 37d147294b..f8825a3357 100644
--- a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js
@@ -89,12 +89,12 @@ if (jsonData?.error_code) {
);
}
-// Response body should have value "Your card has insufficient funds." for "error_message"
+// Response body should have value "message - Your card has insufficient funds., decline_code - insufficient_funds" for "error_message"
if (jsonData?.error_message) {
pm.test(
- "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'Your card has insufficient funds.'",
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'message - Your card has insufficient funds., decline_code - insufficient_funds'",
function () {
- pm.expect(jsonData.error_message).to.eql("Your card has insufficient funds.");
+ pm.expect(jsonData.error_message).to.eql("message - Your card has insufficient funds., decline_code - insufficient_funds");
},
);
}