text
stringlengths
70
351k
source
stringclasses
4 values
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/API Key/Update API Key/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{admin_api_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw_json_formatted": { "name": null, "description": "My very awesome API key", "expiration": null } }, "url": { "raw": "{{baseUrl}}/api_keys/:merchant_id/:api_key_id", "host": ["{{baseUrl}}"], "path": ["api_keys", ":merchant_id", ":api_key_id"], "variable": [ { "key": "merchant_id", "value": "{{merchant_id}}" }, { "key": "api_key_id", "value": "{{api_key_id}}" } ] } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/API Key/Retrieve API Key/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{admin_api_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/api_keys/:merchant_id/:api_key_id", "host": ["{{baseUrl}}"], "path": ["api_keys", ":merchant_id", ":api_key_id"], "variable": [ { "key": "merchant_id", "value": "{{merchant_id}}" }, { "key": "api_key_id", "value": "{{api_key_id}}" } ] } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario14-BNPL-affirm/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "client_secret": "{{client_secret}}", "payment_method": "pay_later", "payment_method_type": "affirm", "payment_experience": "redirect_to_url", "payment_method_data": { "pay_later": { "affirm_redirect": { "issuer_name": "affirm", "billing_email": "user-us@example.com", "billing_country": "US" } } } } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario12-BNPL-klarna/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 8000, "currency": "USD", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario12-BNPL-klarna/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "client_secret": "{{client_secret}}", "payment_method": "pay_later", "payment_method_type": "klarna", "payment_experience": "redirect_to_url", "payment_method_data": { "pay_later": { "klarna_redirect": { "issuer_name": "stripe", "billing_email": "arjun.karthik@juspay.in", "billing_country": "US" } } } } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario19-Bank Transfer-ach Copy 2/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 800, "currency": "USD", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 800, "customer_id": "poll", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://hs-payments-test.netlify.app/payments", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario19-Bank Transfer-ach Copy 2/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "client_secret": "{{client_secret}}", "payment_method": "bank_transfer", "payment_method_type": "ach", "payment_method_data": { "bank_transfer": { "ach_bank_transfer": { "billing_details": { "email": "johndoe@example.com" } } } } } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6570, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "mandate_id": "{{mandate_id}}", "off_session": true, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Happy Cases/Scenario13-BNPL-afterpay/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "client_secret": "{{client_secret}}", "payment_method": "pay_later", "payment_method_type": "afterpay_clearpay", "payment_experience": "redirect_to_url", "payment_method_data": { "pay_later": { "afterpay_clearpay_redirect": { "billing_name": "Akshaya", "billing_email": "example@example.com" } } } } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Hackathon/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 8040, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "mandate_id": "{{mandate_id}}", "off_session": true, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/hyperswitch/Refunds/Refunds - Update/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "reason": "Paid by mistake", "metadata": { "udf1": "value2", "new_customer": "false", "login_date": "2019-09-1T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/refunds/:id", "host": ["{{baseUrl}}"], "path": ["refunds", ":id"], "variable": [ { "key": "id", "value": "{{refund_id}}", "description": "(Required) unique refund id" } ] }, "description": "To update the properties of a Refund object. This may include attaching a reason for the refund or metadata fields" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/bambora/.info.json<|crate|> postman<|meta_end|> { "info": { "_postman_id": "383637a0-a39c-4048-a123-25116335c713", "name": "bambora", "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", "_exporter_id": "25737662" } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/bambora/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_id": "{{payment_id}}", "amount": 100, "reason": "Customer returned product", "refund_type": "instant", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/refunds", "host": ["{{baseUrl}}"], "path": ["refunds"] }, "description": "To create a refund against an already processed payment" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/bambora/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount_to_capture": 600, "statement_descriptor_name": "Joseph", "statement_descriptor_suffix": "JS" } }, "url": { "raw": "{{baseUrl}}/payments/:id/capture", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "capture"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "To capture the funds for an uncaptured payment" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/multisafepay/.info.json<|crate|> postman<|meta_end|> { "info": { "_postman_id": "f2bb578b-9c64-4826-94bd-324278f3b8b9", "name": "multisafepay", "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", "_exporter_id": "25737662" } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/multisafepay/Flow Testcases/Happy Cases/Scenario1-Create payment without PMD/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://duck.com", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "someone", "last_name": "happy" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "someone", "last_name": "happy" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/.info.json<|crate|> postman<|meta_end|> { "info": { "_postman_id": "a553df38-fa33-4522-b029-1cd32821730e", "name": "Stripe Postman 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", "_exporter_id": "24206034" } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Customers/List Customer/request.json<|crate|> postman<|meta_end|> { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/customers/list", "host": [ "{{baseUrl}}" ], "path": [ "customers", "list" ] } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/PaymentConnectors/List Connectors by MID/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{api_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-merchant-id", "value": "{{merchant_id}}" } ], "url": { "raw": "{{baseUrl}}/account/:account_id/connectors", "host": ["{{baseUrl}}"], "path": ["account", ":account_id", "connectors"], "variable": [ { "key": "account_id", "value": "{{merchant_id}}" } ] } }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Retrieve/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{api_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "x-merchant-id", "value": "{{merchant_id}}" } ], "url": { "raw": "{{baseUrl}}/account/:account_id/connectors/:connector_id", "host": ["{{baseUrl}}"], "path": ["account", ":account_id", "connectors", ":connector_id"], "variable": [ { "key": "account_id", "value": "{{merchant_id}}", "description": "(Required) The unique identifier for the merchant account" }, { "key": "connector_id", "value": "{{merchant_connector_id}}", "description": "(Required) The unique identifier for the payment connector" } ] }, "description": "Retrieve Payment Connector details." }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/PaymentMethods/PaymentMethods - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "card", "payment_method_type": "credit", "payment_method_issuer": "Visa", "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "John Doe" }, "customer_id": "{{customer_id}}", "metadata": { "city": "NY", "unit": "245" } } }, "url": { "raw": "{{baseUrl}}/payment_methods", "host": ["{{baseUrl}}"], "path": ["payment_methods"] }, "description": "To create a payment method against a customer object. In case of cards, this API could be used only by PCI compliant merchants" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario14-BNPL-affirm/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "pay_later", "payment_method_type": "affirm", "payment_experience": "redirect_to_url", "payment_method_data": { "pay_later": { "affirm_redirect": { "issuer_name": "affirm", "billing_email": "user-us@example.com", "billing_country": "US" } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario15-Bank Redirect-Ideal/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "bank_redirect", "payment_method_type": "ideal", "payment_method_data": { "bank_redirect": { "ideal": { "bank_name": "ing", "preferred_language": "en" } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario18-Bank Transfer-ach/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 800, "currency": "USD", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 800, "customer_id": "poll", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://hs-payments-test.netlify.app/payments", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "billing": { "address": { "line1": "1467", "line2": "HarrisonStreet", "line3": "HarrisonStreet", "city": "SanFransico", "state": "California", "zip": "94122", "country": "US", "first_name": "Swangi", "last_name": "Kumari" }, "email": "guest@example.com" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario18-Bank Transfer-ach/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "bank_transfer", "payment_method_type": "ach", "payment_method_data": { "bank_transfer": { "ach_bank_transfer": { "billing_details": { "email": "johndoe@example.com" } } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario27-Confirm a payment with requires_customer_action status/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "card_cvc": "123" } }, "client_secret": "{{client_secret}}", "browser_info": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "nl-NL", "color_depth": 24, "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true, "ip_address": "125.0.0.1" } } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Expiry year/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "22", "card_holder_name": "joseph Doe", "card_cvc": "123" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Card Number/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "card", "payment_method_data": { "card": { "card_number": "1234", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Expiry month/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "13", "card_exp_year": "69", "card_holder_name": "joseph Doe", "card_cvc": "123" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Success/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Card CVC/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Reward Payment Method/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "payment_method": "reward", "payment_method_type": "evoucher", "payment_method_data": "reward" } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario29-Update payment with payment method billing/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": false, "business_country": "US", "business_label": "default", "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "bernard123", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "setup_future_usage": "on_session", "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "sundari", "last_name": "sundari" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario29-Update payment with payment method billing/Payments - Update/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "01", "card_exp_year": "26", "card_holder_name": "joseph Doe", "card_cvc": "123" }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrisoff Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "Narayan", "last_name": "Doe" }, "email": "example@juspay.in" } } } }, "url": { "raw": "{{baseUrl}}/payments/:id", "host": ["{{baseUrl}}"], "path": ["payments", ":id"], "variable": [ { "key": "id", "value": "{{payment_id}}" } ] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario16-Bank Redirect-sofort/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "bank_redirect", "payment_method_type": "sofort", "payment_method_data": { "bank_redirect": { "sofort": { "bank_name": "hypo_noe_lb_fur_niederosterreich_u_wien", "preferred_language": "en" } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario21- Update address and List Payment method/List Payment Methods for a Merchant-copy/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/account/payment_methods?client_secret={{client_secret}}", "host": ["{{baseUrl}}"], "path": ["account", "payment_methods"], "query": [ { "key": "client_secret", "value": "{{client_secret}}" } ] }, "description": "To filter and list the applicable payment methods for a particular merchant id." }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario21- Update address and List Payment method/Payments - Update/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "currency": "EUR", "shipping": { "address": { "line1": "1468", "line2": "Koramangala ", "line3": "Koramangala ", "city": "Bangalore", "state": "Karnataka", "zip": "560065", "country": "NL", "first_name": "Preeetam", "last_name": "Rev" }, "phone": { "number": "9123456789", "country_code": "+91" } }, "billing": { "address": { "line1": "1468", "line2": "Koramangala ", "line3": "Koramangala ", "city": "Bangalore", "state": "Karnataka", "zip": "560065", "country": "NL", "first_name": "Preeetam", "last_name": "Rev" }, "phone": { "number": "9123456789", "country_code": "+91" }, "email": "swangi@gmail.com" } } }, "url": { "raw": "{{baseUrl}}/payments/:id", "host": [ "{{baseUrl}}" ], "path": [ "payments", ":id" ], "variable": [ { "key": "id", "value": "{{payment_id}}" } ] }, "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created " }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update Amount/Payments - Update/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 1000, "amount_to_capture": 1000 } }, "url": { "raw": "{{baseUrl}}/payments/:id", "host": [ "{{baseUrl}}" ], "path": [ "payments", ":id" ], "variable": [ { "key": "id", "value": "{{payment_id}}" } ] }, "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created " }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario17-Bank Redirect-eps/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "bank_redirect", "payment_method_type": "eps", "payment_method_data": { "bank_redirect": { "eps": { "billing_details": { "billing_name": "John Doe" }, "bank_name": "hypo_oberosterreich_salzburg_steiermark", "preferred_language": "en", "country": "AT" } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario13-BNPL-afterpay/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "pay_later", "payment_method_type": "afterpay_clearpay", "payment_experience": "redirect_to_url", "payment_method_data": { "pay_later": { "afterpay_clearpay_redirect": { "billing_name": "Akshaya", "billing_email": "example@example.com" } } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": ["{{baseUrl}}"], "path": ["payments", ":id", "confirm"], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - cvv check fails/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": true, "payment_method": "card", "payment_method_data": { "card": { "card_number": "4000000000000101", "card_exp_month": "12", "card_exp_year": "34", "card_holder_name": "joseph Doe", "card_cvc": "123" } }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrisoff Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "Narayan", "last_name": "Doe" }, "email": "example@juspay.in" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - postal code check fail/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": true, "payment_method": "card", "payment_method_data": { "card": { "card_number": "4000000000000036", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrisoff Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "Narayan", "last_name": "Doe" }, "email": "example@juspay.in" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - successful payment with billing/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": true, "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrisoff Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "Narayan", "last_name": "Doe" }, "email": "example@juspay.in" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - payment check populated for successful payment without billing/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 6540, "currency": "USD", "confirm": true, "payment_method": "card", "payment_method_data": { "card": { "card_number": "378282246310005", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "joseph Doe", "card_cvc": "123" } } } }, "url": { "raw": "{{baseUrl}}/payments", "host": ["{{baseUrl}}"], "path": ["payments"] }, "description": "Create a Payment to ensure api contract is intact" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario20-Wallet-Wechatpay/Payments - Create/request.json<|crate|> postman<|meta_end|> { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "amount": 800, "currency": "USD", "confirm": false, "business_country": "US", "business_label": "default", "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 800, "customer_id": "poll", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://duck.com", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } }, "url": { "raw": "{{baseUrl}}/payments", "host": [ "{{baseUrl}}" ], "path": [ "payments" ] }, "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture" }
ast_fragments
<|meta_start|><|file|> hyperswitch/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario20-Wallet-Wechatpay/Payments - Confirm/request.json<|crate|> postman<|meta_end|> { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{publishable_key}}", "type": "string" }, { "key": "key", "value": "api-key", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { "payment_method": "wallet", "payment_method_type": "we_chat_pay", "payment_method_data": { "wallet": { "we_chat_pay_qr": {} } }, "client_secret": "{{client_secret}}" } }, "url": { "raw": "{{baseUrl}}/payments/:id/confirm", "host": [ "{{baseUrl}}" ], "path": [ "payments", ":id", "confirm" ], "variable": [ { "key": "id", "value": "{{payment_id}}", "description": "(Required) unique payment id" } ] }, "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API" }
ast_fragments
<|meta_start|><|file|> hyperswitch/.devcontainer/devcontainer.json<|crate|> .devcontainer<|meta_end|> { "name": "Existing Dockerfile", "build": { // Sets the run context to one level up instead of the .devcontainer folder. "context": "..", // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. "dockerfile": "../Dockerfile" }, "features": { "ghcr.io/devcontainers-contrib/features/redis-homebrew:1": {} }, "customizations": { "vscode": { "extensions": ["tamasfe.even-better-toml", "rust-lang.rust-analyzer"] } }, // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [8080] // Uncomment the next line to run commands after the container is created. // "postCreateCommand": "cat /etc/os-release", // Configure tool-specific properties. // "customizations": {}, // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "devcontainer" }
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [log.telemetry] traces_enabled = true metrics_enabled = true ignore_errors = false
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [master_database] username = "postgres" password = "postgres" host = "db" port = 5432 dbname = "loadtest_router" pool_size = 20 connection_timeout = 10
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [server] host = "0.0.0.0"
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [secrets] admin_api_key = "test_admin" jwt_secret = "secret"
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [user] password_validity_in_days = 90 two_factor_auth_expiry_in_secs = 300 totp_issuer_name = "Hyperswitch" force_two_factor_auth = false force_cookies = true
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [pm_filters.adyen] boleto = { country = "BR", currency = "BRL" } sofort = { country = "AT,BE,DE,ES,CH,NL", currency = "CHF,EUR" } paypal = { country = "AU,NZ,CN,JP,HK,MY,TH,KR,PH,ID,AE,KW,BR,ES,GB,SE,NO,SK,AT,NL,DE,HU,CY,LU,CH,BE,FR,DK,FI,RO,HR,UA,MT,SI,GI,PT,IE,CZ,EE,LT,LV,IT,PL,IS,CA,US", currency = "AUD,BRL,CAD,CZK,DKK,EUR,HKD,HUF,INR,JPY,MYR,MXN,NZD,NOK,PHP,PLN,RUB,GBP,SGD,SEK,CHF,THB,USD" } klarna = { country = "AU,AT,BE,CA,CZ,DK,FI,FR,DE,GR,IE,IT,NO,PL,PT,RO,ES,SE,CH,NL,GB,US", currency = "AUD,EUR,CAD,CZK,DKK,NOK,PLN,RON,SEK,CHF,GBP,USD" } ideal = { country = "NL", currency = "EUR" }
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [pm_filters.shift4] eps = { country = "AT", currency = "EUR" } giropay = { country = "DE", currency = "EUR" } ideal = { country = "NL", currency = "EUR" } sofort = { country = "AT,BE,CH,DE,ES,FI,FR,GB,IT,NL,PL,SE", currency = "CHF,EUR" } credit = { country = "AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HM,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SJ,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TF,TG,TH,TJ,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW", currency = "AED,AFN,ALL,AMD,ANG,AOA,ARS,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,CAD,CDF,CHF,CLP,CNY,COP,CRC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,JPY,KES,KGS,KHR,KMF,KPW,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRU,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLL,SOS,SRD,SSP,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL" } debit = { country = "AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HM,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SJ,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TF,TG,TH,TJ,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW", currency = "AED,AFN,ALL,AMD,ANG,AOA,ARS,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,CAD,CDF,CHF,CLP,CNY,COP,CRC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,JPY,KES,KGS,KHR,KMF,KPW,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRU,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLL,SOS,SRD,SSP,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL" } #tokenization configuration which describe token lifetime and payment method for specific connector
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [tokenization] stripe = { long_lived_token = false, payment_method = "wallet", payment_method_type = { type = "disable_only", list = "google_pay" } } checkout = { long_lived_token = false, payment_method = "wallet", apple_pay_pre_decrypt_flow = "network_tokenization" } mollie = { long_lived_token = false, payment_method = "card" } braintree = { long_lived_token = false, payment_method = "card" } gocardless = { long_lived_token = true, payment_method = "bank_debit" } billwerk = { long_lived_token = false, payment_method = "card" }
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [connector_customer] connector_list = "gocardless,stax,stripe" payout_connector_list = "nomupay,wise"
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [cors] max_age = 30 origins = "http://localhost:8080" allowed_methods = "GET,POST,PUT,DELETE" wildcard_origin = false
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [analytics.sqlx] username = "db_user" password = "db_pass" host = "localhost" port = 5432 dbname = "hyperswitch_db" pool_size = 5 connection_timeout = 10
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [kv_config] ttl = 300 # 5 * 60 seconds
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [connector_onboarding.paypal] client_id = "" client_secret = "" partner_id = ""
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [multitenancy] enabled = false global_tenant = { tenant_id = "global", schema = "public", redis_key_prefix = "" }
ast_fragments
# file: hyperswitch/loadtest/config/development.toml | crate: loadtest [temp_locker_enable_config] paybox = { payment_method = "card" } redsys = { payment_method = "card" }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/health.js | crate: loadtest import http from "k6/http"; import { sleep, check } from "k6"; import { Counter } from "k6/metrics"; import { readBaseline, storeResult } from "./helper/compare-result.js"; function handleSummary(data) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/rps.js | crate: loadtest import { group } from 'k6'; import { Counter } from "k6/metrics"; import { readBaseline, storeResult } from "./helper/compare-result.js"; import { setup_merchant_apikey } from "./helper/setup.js"; import paymentCreateAndConfirmFunc from './payment-create-and-confirm.js'; import paymentConfirmFunc from './payment-confirm.js'; function setup() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function generateJUnitXML(data, options) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function generateTextSummary(data, options) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function humanizeGenericDuration(duration) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function summarizeCheck(indent, check, decorate) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function strWidth(s) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function escapeHTML(str) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function nonTrendMetricValueForSum(metric, timeUnit) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function humanizeValue(val, metric, timeUnit) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function humanizeDuration(duration, timeUnit) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function toFixedNoTrailingZerosTrunc(val, prec) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function toFixedNoTrailingZeros(val, prec) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function humanizeBytes(bytes) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function indentForMetric(name) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function displayNameForMetric(name) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function summarizeGroup(indent, group, decorate) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/k6-summary.js | crate: loadtest function summarizeMetrics(options, data, decorate) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/misc.js | crate: loadtest function random_string() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/compare-result.js | crate: loadtest import { textSummary } from "./k6-summary.js"; function storeResult(scenario, baseline, data) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/compare-result.js | crate: loadtest import { textSummary } from "./k6-summary.js"; function readBaseline(scenario) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/compare-result.js | crate: loadtest import { textSummary } from "./k6-summary.js"; function compareResult(baseline, data) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/compare-result.js | crate: loadtest import { textSummary } from "./k6-summary.js"; function buildResult(baseline, data) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/compare-result.js | crate: loadtest import { textSummary } from "./k6-summary.js"; function compute(baseline, result) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/loadtest/k6/helper/setup.js | crate: loadtest import http from "k6/http"; import { check } from "k6"; function setup_merchant_apikey() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
# file: hyperswitch/.github/git-cliff-changelog.toml | crate: .github [changelog] # changelog header header = """ # Changelog\n All notable changes to HyperSwitch will be documented here.\n """ # template for the changelog body # https://tera.netlify.app/docs/#introduction body = """ {% set newline = "\n" -%} {% set commit_base_url = "https://github.com/juspay/hyperswitch/commit/" -%} {% set compare_base_url = "https://github.com/juspay/hyperswitch/compare/" -%} {% if version -%} ## {{ version }} {% else -%} ## [unreleased] {% endif -%} {% for group, commits in commits | group_by(attribute="group") %} {# The `striptags` removes the HTML comments added while grouping -#} ### {{ group | striptags | trim | upper_first }} {% for scope, commits in commits | group_by(attribute="scope") %} - {{ "**" ~ scope ~ ":" ~ "**" -}} {% for commit in commits -%} {% if commits | length != 1 %}{{ newline ~ " - " }}{% else %}{{ " " }}{% endif -%} {{ commit.message | upper_first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`]({{ commit_base_url ~ commit.id }})) {%- endfor -%} {%- endfor -%} {%- for commit in commits -%} {% if commit.scope %}{% else %} - {{ commit.message | upper_first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`]({{ commit_base_url ~ commit.id }})) {%- endif %} {%- endfor %} {% endfor %} {% if previous and previous.commit_id and commit_id -%} **Full Changelog:** [`{{ previous.version }}...{{ version }}`]({{ compare_base_url }}{{ previous.version }}...{{ version }})\n {% endif %} """ # remove the leading and trailing whitespace from the template trim = true # changelog footer footer = ""
ast_fragments
# file: hyperswitch/.github/git-cliff-changelog.toml | crate: .github [git] # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that are not conventional filter_unconventional = false # process each line of a commit as an individual commit split_commits = false # regex for preprocessing the commit messages commit_preprocessors = [ { pattern = "^ +", replace = "" }, # remove spaces at the beginning of the message { pattern = " +", replace = " " }, # replace multiple spaces with a single space { pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/juspay/hyperswitch/pull/${1}))" }, # replace PR numbers with links { pattern = "(\\n?Co-authored-by: .+ <.+@.+>\\n?)+", replace = "" }, # remove co-author information { pattern = "(\\n?Signed-off-by: .+ <.+@.+>\\n?)+", replace = "" }, # remove sign-off information ] # regex for parsing and grouping commits # the HTML comments (`<!-- N -->`) are a workaround to get sections in custom order, since `git-cliff` sorts sections in alphabetical order # reference: https://github.com/orhun/git-cliff/issues/9 commit_parsers = [ { message = "^(?i)(feat)", group = "<!-- 0 -->Features" }, { message = "^(?i)(fix)", group = "<!-- 1 -->Bug Fixes" }, { message = "^(?i)(perf)", group = "<!-- 2 -->Performance" }, { body = ".*security", group = "<!-- 3 -->Security" }, { message = "^(?i)(refactor)", group = "<!-- 4 -->Refactors" }, { message = "^(?i)(test)", group = "<!-- 5 -->Testing" }, { message = "^(?i)(docs)", group = "<!-- 6 -->Documentation" }, { message = "^(?i)(chore\\(version\\)): (V|v)[\\d]+\\.[\\d]+\\.[\\d]+", skip = true }, { message = "^(?i)(chore\\(version\\)): [0-9]{4}\\.[0-9]{2}\\.[0-9]{2}(\\.[0-9]+)?(-.+)?", skip = true }, { message = "^(?i)(chore)", group = "<!-- 7 -->Miscellaneous Tasks" }, { message = "^(?i)(build)", group = "<!-- 8 -->Build System / Dependencies" }, { message = "^(?i)(ci)", skip = true }, ] # protect breaking changes from being skipped due to matching a skipping commit_parser protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false # glob pattern for matching git tags tag_pattern = "[0-9]{4}\\.[0-9]{2}\\.[0-9]{2}(\\.[0-9]+)?(-.+)?" # regex for skipping tags # skip_tags = "v0.1.0-beta.1" # regex for ignoring tags # ignore_tags = "" # sort the tags topologically topo_order = true # sort the commits inside sections by oldest/newest order sort_commits = "oldest" # limit the number of commits included in the changelog. # limit_commits = 42
ast_fragments
# file: hyperswitch/.github/nextest.toml | crate: .github [profile.default] status-level = "slow" final-status-level = "leak" failure-output = "final" fail-fast = false
ast_fragments
# file: hyperswitch/.github/nextest.toml | crate: .github [profile.ci] retries = 2 status-level = "all" failure-output = "final" fail-fast = false
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [dependencies] async-trait = "0.1.81" aws-config = { version = "1.5.5", optional = true } aws-sdk-kms = { version = "1.40.0", optional = true } base64 = "0.22.1" bytes = "1.7.1" futures = "0.3.30" gethostname = "0.5.0" rustc-hash = "2.0" once_cell = "1.19.0" vaultrs = { version = "0.7.2", optional = true } # Tokio Dependencies tokio = { version = "1.39.3", features = ["macros", "rt-multi-thread"] } axum = "0.7.5" axum-server = { version = "0.7.1", features = ["tls-rustls"] } hyper = "1.4.1" tower = { version = "0.5.0", features = ["limit", "buffer", "load-shed"] } tower-http = { version = "0.5.2", features = ["trace"] } tracing = { version = "0.1.40" } tracing-appender = { version = "0.2.3" } tracing-attributes = "0.1.27" tracing-subscriber = { version = "0.3.18", default-features = true, features = ["env-filter", "json", "registry"] } console-subscriber = { version = "0.4.0", optional = true } http-body-util = "0.1.2" diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time"] } diesel-async = { version = "0.5.0", features = ["postgres", "deadpool"] } serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.140" josekit = "0.8.7" thiserror = "1.0.63" config = "0.14.0" serde_path_to_error = "0.1.16" error-stack = "0.5.0" futures-util = "0.3.30" digest = "0.10" masking = { git = "https://github.com/juspay/hyperswitch", tag = "v1.111.1" } ring = { version = "0.17.8", features = ["std"] } hex = "0.4.3" time = { version = "0.3.36", features = ["serde"] } uuid = { version = "1.10.0", features = ["v7", "fast-rng"] } moka = { version = "0.12.8", features = ["future"], optional = true } reqwest = { version = "0.12.7", features = ["json", "__rustls"] } argh = "0.1.12" nanoid = "0.4.0"
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [package] name = "tartarus" version = "0.1.3" edition = "2021" default-run = "locker" rust-version = "1.78" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [features] default = ["caching"] release = ["kms-aws", "middleware", "key_custodian", "limit", "kms-hashicorp-vault", "caching", "external_key_manager_mtls"] dev = ["kms-aws", "middleware", "key_custodian", "limit", "kms-hashicorp-vault", "caching"] kms-aws = ["dep:aws-config", "dep:aws-sdk-kms"] kms-hashicorp-vault = ["dep:vaultrs"] limit = [] middleware = [] key_custodian = [] caching = ["dep:moka"] console = ["tokio/tracing", "dep:console-subscriber"] external_key_manager = [] external_key_manager_mtls = ["external_key_manager", "reqwest/rustls-tls"]
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [dev-dependencies] rand = "0.8.5" criterion = "0.5.1" axum-test = "15.6.0" rsa = "0.9.2"
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [lints.rust] unsafe_code = "forbid" rust_2018_idioms = { level = "warn", priority = -1 } deprecated = "allow"
ast_fragments
# file: hyperswitch-card-vault/Cargo.toml | crate: Cargo.toml [lints.clippy] as_conversions = "warn" expect_used = "warn" missing_panics_doc = "warn" panic = "warn" panic_in_result_fn = "warn" panicking_unwrap = "warn" todo = "warn" unimplemented = "warn" unreachable = "warn" unwrap_in_result = "warn" unwrap_used = "warn" use_self = "warn"
ast_fragments
# file: hyperswitch-card-vault/config.example.toml | crate: config.example.toml [tenant_secrets] # configure master_key and public_key for each tenant # master_key - used for database encryption this could be aes encrypted by key custodian # public_key - used for signature verification and encryption of response payload which is sent back to tenant hyperswitch = { master_key = "feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308", public_key = "", schema = "public" } # To protect secret/sensitive values like: # - database.passwod # - secrets.master_key # - secrets.tenant_public_key # - secrets.locker_private_key # # Following possible encryption schemes are used, of of them are mutually exclusive, the sections are: # - aws_kms (AWS KMS Symmetric Encryption) # - hashi_corp_vault (HashiCorp Vault Secrets Engine KV version 2) # Aws kms as secrets manager # [secrets_management] # secrets_manager = "aws_kms" # Secrets manager client to be used # [secrets_management.aws_kms] # key_id = "kms_key_id" # The AWS key ID used by the KMS SDK for decrypting data. # region = "kms_region" # The AWS region used by the KMS SDK for decrypting data. # HashiCorp vault as secrets manager # [secrets_management] # secrets_manager = "hashi_corp_vault" # Secrets manager client to be used # [secrets_management.aws_kms] # url = "http://127.0.0.1:8200" # The URL of the hosted HashiCorp vault # token = "hvs.abc" # The secret token to access and communicate with the vault # TLS server within axum
ast_fragments