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
ci(postman): Update PayPal collection (#1966)
Gnanasundari2430a314d4cc1b
diff --git a/postman/paypal.postman_collection.json b/postman/paypal.postman_collection.jsonindex 65ca1dd77d..aa94183588 100644--- a/postman/paypal.postman_collection.json+++ b/postman/paypal.postman_collection.json@@ -1,6 +1,6 @@{"info": {- "_postman_id": "64369d38-a12a-46a0-9130-bad92384e3b8",+ "_postman_id": "351e04ec-1ec0-4cb5-bf39-5b95c8099c53","name": "Paypal Collection","description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou can consume the APIs directly using your favorite HTTP/REST library. \nWe have a testing environment referred to \"sandbox\", which you can setup to test API calls without affecting production data.\n\n### Base URLs\n\nUse the following base URLs when making requests to the APIs:\n\n| Environment | Base URL |\n| --- | --- |\n| Sandbox | [https://sandbox.hyperswitch.io](https://sandbox.hyperswitch.io) |\n| Production | [https://router.juspay.io](https://router.juspay.io) |\n\n# Authentication\n\nWhen you sign up for an account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. \nNever share your secret api keys. Keep them guarded and secure.\n\nContact Support: \nName: Juspay Support \nEmail: [[email protected]](mailto:[email protected])","schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"@@ -3752,11 +3752,10 @@"listen": "test","script": {"exec": [- "// Validate status 4xx ",- "pm.test(\"[POST]::/payments - Status code is 4xx\", function () {",- " pm.response.to.be.error;",+ "// Validate status 2xx ",+ "pm.test(\"[POST]::/payments - Status code is 2xx\", function () {",+ " pm.response.to.be.success;","});",- "","// Validate if response header has matching content-type","pm.test(\"[POST]::/payments - Content-Type is application/json\", function () {"," pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");",@@ -3797,23 +3796,23 @@"};","","",- "// Response body should have \"error\"",- "pm.test(\"[POST]::/payments - Content check if 'error' exists\", function() {",- " pm.expect((typeof jsonData.error !== \"undefined\")).to.be.true;",- "});",- "",- "// Response body should have value \"connector\" for \"error type\"",- "if (jsonData?.error?.type) {",- "pm.test(\"[POST]::/payments - Content check if value for 'error.type' matches 'connector_error'\", function() {",- " pm.expect(jsonData.error.type).to.eql(\"connector\");",+ "// Response body should have value \"requires_confirmation\" for \"status\"",+ "if (jsonData?.status) {",+ "pm.test(\"[POST]::/payments - Content check if value for 'status' matches 'failed'\", function() {",+ " pm.expect(jsonData.status).to.eql(\"failed\");","})};","",- "// Response body should have value \"description - Invalid card number, field - number;\" for \"reason\"",- "if (jsonData?.error?.reason) {",- "pm.test(\"[POST]::/payments - Content check if value for 'error.type' matches 'connector_error'\", function() {",- " pm.expect(jsonData.error.reason).to.eql(\"description - Invalid card number, field - number;\");",+ "// Response body should have value \"requires_confirmation\" for \"status\"",+ "if (jsonData?.status) {",+ "pm.test(\"[POST]::/payments - Content check if value for 'error_code' matches 'UNPROCESSABLE_ENTITY'\", function() {",+ " pm.expect(jsonData.error_code).to.eql(\"UNPROCESSABLE_ENTITY\");","})};","",+ "// Response body should have value \"requires_confirmation\" for \"status\"",+ "if (jsonData?.status) {",+ "pm.test(\"[POST]::/payments - Content check if value for 'error_message' matches 'failed'\", function() {",+ " pm.expect(jsonData.error_message).to.eql(\"description - Invalid card number, field - number;\");",+ "})};",""],"type": "text/javascript"