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 `Stripe` response `status`, `error_code`, and `error_message` for deprecated `Sofort` (#7730)

Arindam Sahoo5d5dbe0c26c2
diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Confirm/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Confirm/event.test.js
index aa8d32b0cf..c2e29faee5 100644
--- a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Confirm/event.test.js
+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Confirm/event.test.js
@@ -63,21 +63,21 @@ if (jsonData?.client_secret) {
);
}
-// Response body should have value "requires_customer_action" for "status"
+// Response body should have value "failed" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'requires_customer_action'",
+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'failed'",
function () {
- pm.expect(jsonData.status).to.eql("requires_customer_action");
+ pm.expect(jsonData.status).to.eql("failed");
},
);
}
-// Response body should have "next_action.redirect_to_url"
+// Response body should have "next_action"
pm.test(
- "[POST]::/payments - Content check if 'next_action.redirect_to_url' exists",
+ "[POST]::/payments - Content check if 'next_action' exists",
function () {
- pm.expect(typeof jsonData.next_action.redirect_to_url !== "undefined").to.be
+ pm.expect(typeof jsonData.next_action !== "undefined").to.be
.true;
},
);
@@ -92,6 +92,26 @@ if (jsonData?.payment_method_type) {
);
}
+// Response body should have value "payment_method_not_available" for "error_code"
+if (jsonData?.error_code) {
+ pm.test(
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches 'payment_method_not_available'",
+ function () {
+ pm.expect(jsonData.error_code).to.eql("payment_method_not_available");
+ },
+ );
+}
+
+// Response body should have value "Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort" for "error_message"
+if (jsonData?.error_message) {
+ pm.test(
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort'",
+ function () {
+ pm.expect(jsonData.error_message).to.eql("Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort");
+ },
+ );
+}
+
// Response body should have value "stripe" for "connector"
if (jsonData?.connector) {
pm.test(
diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Retrieve/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Retrieve/event.test.js
index 9053ddab13..e99ef624bf 100644
--- a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Retrieve/event.test.js
@@ -60,12 +60,32 @@ if (jsonData?.client_secret) {
);
}
-// Response body should have value "requires_customer_action" for "status"
+// Response body should have value "failed" for "status"
if (jsonData?.status) {
pm.test(
- "[POST]::/payments:id - Content check if value for 'status' matches 'requires_customer_action'",
+ "[POST]::/payments:id - Content check if value for 'status' matches 'failed'",
function () {
- pm.expect(jsonData.status).to.eql("requires_customer_action");
+ pm.expect(jsonData.status).to.eql("failed");
},
);
}
+
+// Response body should have value "payment_method_not_available" for "error_code"
+if (jsonData?.error_code) {
+ pm.test(
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches 'payment_method_not_available'",
+ function () {
+ pm.expect(jsonData.error_code).to.eql("payment_method_not_available");
+ },
+ );
+}
+
+// Response body should have value "Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort" for "error_message"
+if (jsonData?.error_message) {
+ pm.test(
+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort'",
+ function () {
+ pm.expect(jsonData.error_message).to.eql("Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort");
+ },
+ );
+}
\ No newline at end of file