diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.yml index e91da4d573..2083c246cf 100644 --- a/.github/workflows/postman-collection-runner.yml +++ b/.github/workflows/postman-collection-runner.yml @@ -16,7 +16,7 @@ env: RUSTUP_MAX_RETRIES: 10 RUST_BACKTRACE: short CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, forte, globalpay, mollie, nexinets, nmi, payme, paypal, powertranz, rapyd, shift4, stripe, trustpay, worldline + CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, forte, mollie, nexinets, nmi, payme, paypal, powertranz, rapyd, shift4, stripe, trustpay, worldline jobs: runner: diff --git a/postman/adyen_uk.postman_collection.json b/postman/adyen_uk.postman_collection.json index 24aa72ab6b..7905407ed0 100644 --- a/postman/adyen_uk.postman_collection.json +++ b/postman/adyen_uk.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "9854961f-581b-4d76-a5d1-c92c822ce0d4", + "_postman_id": "43194172-5a11-4ffb-b733-1823bdf5b7e0", "name": "Adyen UK 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: [support@juspay.in](mailto:support@juspay.in)", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", @@ -8226,8 +8226,8 @@ "", "// Response body should have value \"invalid_request\" for \"error type\"", "if (jsonData?.error?.message) {", - "pm.test(\"[POST]::/payments - Content check if value for 'error.message' matches 'This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture'\", function() {", - " pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture\");", + "pm.test(\"[POST]::/payments - Content check if value for 'error.message' matches 'This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture, partially captured'\", function() {", + " pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture, partially captured\");", "})};", "", "", @@ -8236,6 +8236,13 @@ ], "type": "text/javascript" } + }, + { + "listen": "prerequest", + "script": { + "exec": [], + "type": "text/javascript" + } } ], "request": { diff --git a/postman/checkout.postman_collection.json b/postman/checkout.postman_collection.json index 2352e3f27d..c277454a73 100644 --- a/postman/checkout.postman_collection.json +++ b/postman/checkout.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "78a39113-93a6-4297-ac31-705a5d6510e4", + "_postman_id": "e53ab22a-5f53-4d37-8db7-2be27ea5e0d3", "name": "Checkout 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: [support@juspay.in](mailto:support@juspay.in)", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", @@ -5549,7 +5549,7 @@ "// Response body should have value \"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture\" for \"error message\"", "if (jsonData?.error?.message) {", "pm.test(\"[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'\", function() {", - " pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture\");", + " pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture, partially captured\");", "})};", "", "", @@ -5558,6 +5558,13 @@ ], "type": "text/javascript" } + }, + { + "listen": "prerequest", + "script": { + "exec": [], + "type": "text/javascript" + } } ], "request": {