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): Fix Postman collections for Stripe and ACI (#1690)

Gnanasundari24b8393d4b50e2
diff --git a/postman/aci.postman_collection.json b/postman/aci.postman_collection.json
index a4be890fdc..157a54d707 100644
--- a/postman/aci.postman_collection.json
+++ b/postman/aci.postman_collection.json
@@ -1,9 +1,10 @@
{
"info": {
- "_postman_id": "f1084505-2114-4444-a746-09b87a121000",
+ "_postman_id": "18ca63c6-d827-4133-afd1-341edbd5f541",
"name": "ACI 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"
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
+ "_exporter_id": "20499028"
},
"item": [
{
@@ -3595,129 +3596,6 @@
"description": "To filter and list the applicable payment methods for a particular Customer ID"
},
"response": []
- },
- {
- "name": "PaymentMethods - Update",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "// Validate status 2xx ",
- "pm.test(\"[POST]::/payment_methods/:id - Status code is 2xx\", function () {",
- " pm.response.to.be.success;",
- "});",
- "",
- "// Validate if response header has matching content-type",
- "pm.test(\"[POST]::/payment_methods/:id - Content-Type is application/json\", function () {",
- " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");",
- "});",
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"card\": {\n \"card_number\": \"4242424242424242\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"2025\",\n \"card_holder_name\": \"John Doe\"\n },\n \"metadata\": {\n \"city\": \"NY\",\n \"unit\": \"245\"\n }\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{baseUrl}}/payment_methods/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "payment_methods",
- ":id"
- ],
- "query": [
- {
- "key": null,
- "value": "",
- "disabled": true
- }
- ],
- "variable": [
- {
- "key": "id",
- "value": "{{payment_method_id}}",
- "description": "(Required) The unique identifier for the payment method"
- }
- ]
- },
- "description": "To update an existing a payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards, to prevent discontinuity in recurring payments"
- },
- "response": []
- },
- {
- "name": "Delete PaymentMethods",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "// Validate status 2xx ",
- "pm.test(\"[POST]::/payment_methods/:id/detach - Status code is 2xx\", function () {",
- " pm.response.to.be.success;",
- "});",
- "",
- "// Validate if response header has matching content-type",
- "pm.test(\"[POST]::/payment_methods/:id/detach - Content-Type is application/json\", function () {",
- " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");",
- "});",
- "",
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "DELETE",
- "header": [
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/payment_methods/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "payment_methods",
- ":id"
- ],
- "variable": [
- {
- "key": "id",
- "value": "{{payment_token}}",
- "description": "(Required) The unique identifier for the payment method"
- }
- ]
- },
- "description": "Detaches a PaymentMethod object from a Customer."
- },
- "response": []
}
]
},
diff --git a/postman/stripe.postman_collection.json b/postman/stripe.postman_collection.json
index 6565c75ecf..efdfb1c18a 100644
--- a/postman/stripe.postman_collection.json
+++ b/postman/stripe.postman_collection.json
@@ -1,9 +1,11 @@
{
"info": {
- "_postman_id": "789922f3-108b-4c10-82c7-f03dd6c60059",
+ "_postman_id": "1d49ed31-a560-42c1-8064-ba6c163b7f90",
"name": "Stripe 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"},
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
+ "_exporter_id": "20499028"
+ },
"item": [
{
"name": "Health check",
@@ -3689,122 +3691,6 @@
"description": "To filter and list the applicable payment methods for a particular Customer ID"
},
"response": []
- },
- {
- "name": "PaymentMethods - Update",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "// Validate status 2xx ",
- "pm.test(\"[POST]::/payment_methods/:id - Status code is 2xx\", function () {",
- " pm.response.to.be.success;",
- "});",
- "",
- "// Validate if response header has matching content-type",
- "pm.test(\"[POST]::/payment_methods/:id - Content-Type is application/json\", function () {",
- " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");",
- "});",
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"card\": {\n \"card_number\": \"4242424242424242\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"John Doe\"\n },\n \"metadata\": {\n \"city\": \"NY\",\n \"unit\": \"245\"\n }\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{baseUrl}}/payment_methods/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "payment_methods",
- ":id"
- ],
- "variable": [
- {
- "key": "id",
- "value": "{{payment_method_id}}",
- "description": "(Required) The unique identifier for the payment method"
- }
- ]
- },
- "description": "To update an existing a payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards, to prevent discontinuity in recurring payments"
- },
- "response": []
- },
- {
- "name": "Delete PaymentMethods",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "// Validate status 2xx ",
- "pm.test(\"[POST]::/payment_methods/:id/detach - Status code is 2xx\", function () {",
- " pm.response.to.be.success;",
- "});",
- "",
- "// Validate if response header has matching content-type",
- "pm.test(\"[POST]::/payment_methods/:id/detach - Content-Type is application/json\", function () {",
- " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");",
- "});",
- "",
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "DELETE",
- "header": [
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/payment_methods/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "payment_methods",
- ":id"
- ],
- "variable": [
- {
- "key": "id",
- "value": "{{payment_token}}",
- "description": "(Required) The unique identifier for the payment method"
- }
- ]
- },
- "description": "Detaches a PaymentMethod object from a Customer."
- },
- "response": []
}
]
},