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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(postman): update confirm payment test to allow multiple CVV error … (#11393)
Vasanth39192bf659c9
diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario13-Pass Invalid CVV for save card flow and verify failed payment/Save card payments - Confirm/event.test.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario13-Pass Invalid CVV for save card flow and verify failed payment/Save card payments - Confirm/event.test.jsindex fe82715c01..5147447efe 100644--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario13-Pass Invalid CVV for save card flow and verify failed payment/Save card payments - Confirm/event.test.js+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario13-Pass Invalid CVV for save card flow and verify failed payment/Save card payments - Confirm/event.test.js@@ -82,22 +82,27 @@ if (jsonData?.connector) {);}-// Response body should have value "24" for "error_code"+// Allow both legacy and new CVV error codes+const allowedErrors = ["cvv_invalid", "card_cvv_length_invalid"];++// Validate error_code field if present in responseif (jsonData?.error_code) {pm.test(- "[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches 'cvv_invalid'",+ "[POST]::/payments/:id/confirm - Validate error_code for invalid CVV",function () {- pm.expect(jsonData.error_code).to.eql("cvv_invalid");+ // Check that returned error_code is one of the allowed CVV error variants+ pm.expect(allowedErrors).to.include(jsonData.error_code);},);}-// Response body should have value "24" for "error_message"+// Validate error_message field if present in responseif (jsonData?.error_message) {pm.test(- "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'cvv_invalid'",+ "[POST]::/payments/:id/confirm - Validate error_message for invalid CVV",function () {- pm.expect(jsonData.error_message).to.eql("cvv_invalid");+ // Check that returned error_message matches expected CVV error variants+ pm.expect(allowedErrors).to.include(jsonData.error_message);},);}\ No newline at end of file