Skip to content

Commit

Permalink
card expired fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Likhin Bopanna authored and Likhin Bopanna committed Jan 8, 2024
1 parent de7a607 commit 9f5aa9b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ if (jsonData?.error?.type) {
);
}

// Response body should have value "invalid_request" for "error type"
if (jsonData?.error?.message) {
// Response body should have value "connector error" for "error type"
if (jsonData?.error?.type) {
pm.test(
"[POST]::/payments - Content check if value for 'error.message' matches 'Card Expired'",
"[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",
function () {
pm.expect(jsonData.error.message).to.eql("Card Expired");
pm.expect(jsonData.error.type).to.eql("invalid_request");
},
);
}

0 comments on commit 9f5aa9b

Please sign in to comment.