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

ci(postman): Adyen assertion fix for expired card test case (#3279)

likhinbopanna7d43c5a7367e
diff --git a/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js b/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js
index 93bd98b4cc..1e8dabda82 100644
--- a/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js
+++ b/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js
@@ -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");
},
);
}