Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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. ");
},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
);
}
Loading