repo
stringclasses
4 values
file_path
stringlengths
6
193
extension
stringclasses
23 values
content
stringlengths
0
1.73M
token_count
int64
0
724k
__index_level_0__
int64
0
10.8k
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - List/request.json
.json
{ "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{admin_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" } ], "url": { "raw": "{{baseUrl}}/accounts/list?organization_id={{organization_id}}", "host": [ "{{baseUrl}}" ], "path": [ "accounts", "list" ], "query": [ { "key": "organization_id", "value": "{{organization_id}}" } ], "variable": [ { "key": "organization_id", "value": "{{organization_id}}", "description": "(Required) - Organization id" } ] }, "description": "List merchant accounts for an organization" }
264
8,606
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - List/event.test.js
.js
// Validate status 2xx pm.test("[GET]::/accounts/list - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test("[GET]::/accounts/list - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) { } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); } // pm.collectionVariables - Set publishable_key as variable for jsonData.publishable_key if (jsonData?.publishable_key) { pm.collectionVariables.set("publishable_key", jsonData.publishable_key); console.log( "- use {{publishable_key}} as collection variable for value", jsonData.publishable_key, ); } else { console.log( "INFO - Unable to assign variable {{publishable_key}}, as jsonData.publishable_key is undefined.", ); }
301
8,607
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - List/response.json
.json
[]
1
8,608
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/request.json
.json
{ "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{admin_api_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": { "merchant_id": "postman_merchant_GHAction_{{$guid}}", "locker_id": "m0010", "merchant_name": "NewAge Retailer", "merchant_details": { "primary_contact_person": "John Test", "primary_email": "JohnTest@test.com", "primary_phone": "sunt laborum", "secondary_contact_person": "John Test2", "secondary_email": "JohnTest2@test.com", "secondary_phone": "cillum do dolor id", "website": "www.example.com", "about_business": "Online Retail with a wide selection of organic products for North America", "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US" } }, "return_url": "https://duck.com/success", "webhook_details": { "webhook_version": "1.0.1", "webhook_username": "ekart_retail", "webhook_password": "password_ekart@123", "payment_created_enabled": true, "payment_succeeded_enabled": true, "payment_failed_enabled": true }, "sub_merchants_enabled": false, "metadata": { "city": "NY", "unit": "245" }, "primary_business_details": [ { "country": "US", "business": "default" } ] } }, "url": { "raw": "{{baseUrl}}/accounts", "host": [ "{{baseUrl}}" ], "path": [ "accounts" ] }, "description": "Create a new account for a merchant. The merchant could be a seller or retailer or client who likes to receive and send payments." }
634
8,609
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/event.test.js
.js
// Validate status 2xx pm.test("[POST]::/accounts - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test("[POST]::/accounts - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) { } // pm.collectionVariables - Set merchant_id as variable for jsonData.merchant_id if (jsonData?.merchant_id) { pm.collectionVariables.set("merchant_id", jsonData.merchant_id); console.log( "- use {{merchant_id}} as collection variable for value", jsonData.merchant_id, ); } else { console.log( "INFO - Unable to assign variable {{merchant_id}}, as jsonData.merchant_id is undefined.", ); } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); } // pm.collectionVariables - Set publishable_key as variable for jsonData.publishable_key if (jsonData?.publishable_key) { pm.collectionVariables.set("publishable_key", jsonData.publishable_key); console.log( "- use {{publishable_key}} as collection variable for value", jsonData.publishable_key, ); } else { console.log( "INFO - Unable to assign variable {{publishable_key}}, as jsonData.publishable_key is undefined.", ); } // pm.collectionVariables - Set merchant_id as variable for jsonData.merchant_id if (jsonData?.merchant_id) { pm.collectionVariables.set("organization_id", jsonData.organization_id); console.log( "- use {{organization_id}} as collection variable for value", jsonData.organization_id, ); } else { console.log( "INFO - Unable to assign variable {{organization_id}}, as jsonData.organization_id is undefined.", ); } // Response body should have "mandate_id" pm.test( "[POST]::/accounts - Organization id is generated", function () { pm.expect(typeof jsonData.organization_id !== "undefined").to.be.true; }, );
530
8,610
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/response.json
.json
[]
1
8,611
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/event.prerequest.js
.js
0
8,612
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Update/request.json
.json
{ "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{admin_api_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": { "merchant_id": "{{merchant_id}}", "merchant_name": "NewAge Retailer", "locker_id": "m0010", "merchant_details": { "primary_contact_person": "joseph Test", "primary_email": "josephTest@test.com", "primary_phone": "veniam aute officia ullamco esse", "secondary_contact_person": "joseph Test2", "secondary_email": "josephTest2@test.com", "secondary_phone": "proident adipisicing officia nulla", "website": "www.example.com", "about_business": "Online Retail with a wide selection of organic products for North America", "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US" } }, "return_url": "https://duck.com", "webhook_details": { "webhook_version": "1.0.1", "webhook_username": "ekart_retail", "webhook_password": "password_ekart@123", "payment_created_enabled": true, "payment_succeeded_enabled": true, "payment_failed_enabled": true }, "sub_merchants_enabled": false, "parent_merchant_id": "xkkdf909012sdjki2dkh5sdf", "metadata": { "city": "NY", "unit": "245" } } }, "url": { "raw": "{{baseUrl}}/accounts/:id", "host": [ "{{baseUrl}}" ], "path": [ "accounts", ":id" ], "variable": [ { "key": "id", "value": "{{merchant_id}}", "description": "(Required) The unique identifier for the merchant account" } ] }, "description": "To update an existing merchant account. Helpful in updating merchant details such as email, contact deteails, or other configuration details like webhook, routing algorithm etc" }
691
8,613
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Update/event.test.js
.js
// Validate status 2xx pm.test("[POST]::/accounts/:id - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test( "[POST]::/accounts/:id - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }, ); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); } // pm.collectionVariables - Set publishable_key as variable for jsonData.publishable_key if (jsonData?.publishable_key) { pm.collectionVariables.set("publishable_key", jsonData.publishable_key); console.log( "- use {{publishable_key}} as collection variable for value", jsonData.publishable_key, ); } else { console.log( "INFO - Unable to assign variable {{publishable_key}}, as jsonData.publishable_key is undefined.", ); }
307
8,614
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Update/response.json
.json
[]
1
8,615
hyperswitch
postman/collection-dir/bankofamerica/Health check/New Request/request.json
.json
{ "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/health", "host": ["{{baseUrl}}"], "path": ["health"] } }
47
8,616
hyperswitch
postman/collection-dir/bankofamerica/Health check/New Request/event.test.js
.js
// Validate status 2xx pm.test("[POST]::/accounts - Status code is 2xx", function () { pm.response.to.be.success; });
34
8,617
hyperswitch
postman/collection-dir/bankofamerica/Health check/New Request/response.json
.json
[]
1
8,618
hyperswitch
postman/collection-dir/bankofamerica/API Key/Update API Key/request.json
.json
{ "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}}" } ] } }
284
8,619
hyperswitch
postman/collection-dir/bankofamerica/API Key/Update API Key/event.test.js
.js
// Validate status 2xx pm.test( "[POST]::/api_keys/:merchant_id/:api_key_id - Status code is 2xx", function () { pm.response.to.be.success; }, ); // Validate if response header has matching content-type pm.test( "[POST]::/api_keys/:merchant_id/:api_key_id - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }, ); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set api_key_id as variable for jsonData.key_id if (jsonData?.key_id) { pm.collectionVariables.set("api_key_id", jsonData.key_id); console.log( "- use {{api_key_id}} as collection variable for value", jsonData.key_id, ); } else { console.log( "INFO - Unable to assign variable {{api_key_id}}, as jsonData.key_id is undefined.", ); } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); }
319
8,620
hyperswitch
postman/collection-dir/bankofamerica/API Key/Update API Key/response.json
.json
[]
1
8,621
hyperswitch
postman/collection-dir/bankofamerica/API Key/List API Keys/request.json
.json
{ "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/list", "host": [ "{{baseUrl}}" ], "path": [ "api_keys", ":merchant_id", "list" ], "variable": [ { "key": "merchant_id", "value": "{{merchant_id}}" } ] } }
211
8,622
hyperswitch
postman/collection-dir/bankofamerica/API Key/List API Keys/event.test.js
.js
// Validate status 2xx pm.test("[GET]::/api_keys/:merchant_id/list - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test( "[GET]::/api_keys/:merchant_id/list - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }, ); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set api_key_id as variable for jsonData.key_id if (jsonData?.key_id) { pm.collectionVariables.set("api_key_id", jsonData.key_id); console.log( "- use {{api_key_id}} as collection variable for value", jsonData.key_id, ); } else { console.log( "INFO - Unable to assign variable {{api_key_id}}, as jsonData.key_id is undefined.", ); } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); }
308
8,623
hyperswitch
postman/collection-dir/bankofamerica/API Key/List API Keys/response.json
.json
[]
1
8,624
hyperswitch
postman/collection-dir/bankofamerica/API Key/Create API Key/request.json
.json
{ "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": "API Key 1", "description": null, "expiration": "2069-09-23T01:02:03.000Z" } }, "url": { "raw": "{{baseUrl}}/api_keys/:merchant_id", "host": [ "{{baseUrl}}" ], "path": [ "api_keys", ":merchant_id" ], "variable": [ { "key": "merchant_id", "value": "{{merchant_id}}" } ] } }
275
8,625
hyperswitch
postman/collection-dir/bankofamerica/API Key/Create API Key/event.test.js
.js
// Validate status 2xx pm.test("[POST]::/api_keys/:merchant_id - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test( "[POST]::/api_keys/:merchant_id - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }, ); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set api_key_id as variable for jsonData.key_id if (jsonData?.key_id) { pm.collectionVariables.set("api_key_id", jsonData.key_id); console.log( "- use {{api_key_id}} as collection variable for value", jsonData.key_id, ); } else { console.log( "INFO - Unable to assign variable {{api_key_id}}, as jsonData.key_id is undefined.", ); } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); }
306
8,626
hyperswitch
postman/collection-dir/bankofamerica/API Key/Create API Key/response.json
.json
[]
1
8,627
hyperswitch
postman/collection-dir/bankofamerica/API Key/Retrieve API Key/request.json
.json
{ "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}}" } ] } }
238
8,628
hyperswitch
postman/collection-dir/bankofamerica/API Key/Retrieve API Key/event.test.js
.js
// Validate status 2xx pm.test( "[GET]::/api_keys/:merchant_id/:api_key_id - Status code is 2xx", function () { pm.response.to.be.success; }, ); // Validate if response header has matching content-type pm.test( "[GET]::/api_keys/:merchant_id/:api_key_id - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include( "application/json", ); }, ); // Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set api_key_id as variable for jsonData.key_id if (jsonData?.key_id) { pm.collectionVariables.set("api_key_id", jsonData.key_id); console.log( "- use {{api_key_id}} as collection variable for value", jsonData.key_id, ); } else { console.log( "INFO - Unable to assign variable {{api_key_id}}, as jsonData.key_id is undefined.", ); } // pm.collectionVariables - Set api_key as variable for jsonData.api_key if (jsonData?.api_key) { pm.collectionVariables.set("api_key", jsonData.api_key); console.log( "- use {{api_key}} as collection variable for value", jsonData.api_key, ); } else { console.log( "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.", ); }
319
8,629
hyperswitch
postman/collection-dir/bankofamerica/API Key/Retrieve API Key/response.json
.json
[]
1
8,630
hyperswitch
docker/fluentd/Dockerfile
none
# docker/fluentd/Dockerfile FROM fluent/fluentd:v1.16-debian-2 USER root RUN ["gem", "install", "fluent-plugin-kafka", "--no-document"] RUN ["gem", "install", "fluent-plugin-opensearch", "--no-document"] USER fluent
69
8,633
hyperswitch
docker/fluentd/conf/fluent.conf
.conf
# docker/fluentd/conf/fluent.conf <source> @type kafka_group brokers kafka0:29092 consumer_group fluentd topics hyperswitch-payment-intent-events,hyperswitch-payment-attempt-events,hyperswitch-refund-events,hyperswitch-dispute-events add_headers false add_prefix topic retry_emit_limit 2 </source> <filter topic.hyperswitch-payment-intent-events*> @type record_transformer renew_time_key created_at </filter> <filter topic.hyperswitch-payment-attempt-events*> @type record_transformer renew_time_key created_at </filter> <filter topic.hyperswitch-refund-events*> @type record_transformer renew_time_key created_at </filter> <filter topic.hyperswitch-dispute-events*> @type record_transformer renew_time_key created_at </filter> <match topic.hyperswitch-payment-intent-events*> @type copy <store> @type stdout </store> <store> @type opensearch host opensearch port 9200 scheme https index_name hyperswitch-payment-intent-events id_key payment_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true </store> <store> @type opensearch host opensearch port 9200 scheme https index_name fluentd-hyperswitch-payment-intent-events-%Y-%m-%d id_key payment_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true <buffer tag, time> timekey 10s timekey_wait 10s </buffer> </store> </match> <match topic.hyperswitch-payment-attempt-events*> @type copy <store> @type stdout </store> <store> @type opensearch host opensearch port 9200 scheme https index_name hyperswitch-payment-attempt-events id_key attempt_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true </store> <store> @type opensearch host opensearch port 9200 scheme https index_name fluentd-hyperswitch-payment-attempt-events-%Y-%m-%d id_key attempt_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true <buffer tag, time> timekey 10s timekey_wait 10s </buffer> </store> </match> <match topic.hyperswitch-refund-events*> @type copy <store> @type stdout </store> <store> @type opensearch host opensearch port 9200 scheme https index_name hyperswitch-refund-events id_key refund_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true </store> <store> @type opensearch host opensearch port 9200 scheme https index_name fluentd-hyperswitch-refund-events-%Y-%m-%d id_key refund_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true <buffer tag, time> timekey 10s timekey_wait 10s </buffer> </store> </match> <match topic.hyperswitch-dispute-events*> @type copy <store> @type stdout </store> <store> @type opensearch host opensearch port 9200 scheme https index_name hyperswitch-dispute-events id_key dispute_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true </store> <store> @type opensearch host opensearch port 9200 scheme https index_name fluentd-hyperswitch-dispute-events-%Y-%m-%d id_key dispute_id user admin password '0penS3arc#' ssl_verify false prefer_oj_serializer true reload_on_failure true reload_connections false request_timeout 120s bulk_message_request_threshold 10MB include_timestamp true <buffer tag, time> timekey 10s timekey_wait 10s </buffer> </store> </match>
1,366
8,634
hyperswitch
cypress-tests/package.json
.json
{ "name": "test", "version": "1.0.0", "description": "", "main": "index.js", "type": "module", "scripts": { "cypress": "npx cypress open", "cypress-e2e": "npx cypress run --e2e", "cypress:ci": "npx cypress run --headless", "cypress:misc": "cypress run --headless --spec 'cypress/e2e/spec/Misc/**/*'", "cypress:payment-method-list": "cypress run --headless --spec 'cypress/e2e/spec/PaymentMethodList/**/*'", "cypress:payments": "cypress run --headless --spec 'cypress/e2e/spec/Payment/**/*'", "cypress:payouts": "cypress run --headless --spec 'cypress/e2e/spec/Payout/**/*'", "cypress:routing": "cypress run --headless --spec 'cypress/e2e/spec/Routing/**/*'", "format": "prettier --config .prettierrc . --write", "format:check": "prettier --config .prettierrc . --check", "lint": "eslint ." }, "author": "Hyperswitch", "license": "ISC", "devDependencies": { "@eslint/js": "^9.23.0", "cypress": "^14.2.1", "cypress-mochawesome-reporter": "^3.8.2", "eslint": "^9.23.0", "eslint-config-prettier": "^10.1.1", "eslint-plugin-cypress": "^4.2.0", "eslint-plugin-prettier": "^5.2.5", "globals": "^16.0.0", "jsqr": "^1.4.0", "prettier": "^3.5.3" } }
450
8,635
hyperswitch
cypress-tests/cypress.config.js
.js
import { defineConfig } from "cypress"; import mochawesome from "cypress-mochawesome-reporter/plugin.js"; import fs from "fs"; let globalState; // Fetch from environment variable const connectorId = process.env.CYPRESS_CONNECTOR || "service"; const screenshotsFolderName = `screenshots/${connectorId}`; const reportName = process.env.REPORT_NAME || `${connectorId}_report`; export default defineConfig({ e2e: { setupNodeEvents(on, config) { mochawesome(on); on("task", { setGlobalState: (val) => { return (globalState = val || {}); }, getGlobalState: () => { return globalState || {}; }, cli_log: (message) => { // eslint-disable-next-line no-console console.log("Logging console message from task"); // eslint-disable-next-line no-console console.log(message); return null; }, }); on("after:spec", (spec, results) => { // Clean up resources after each spec if ( results && results.video && !results.tests.some((test) => test.attempts.some((attempt) => attempt.state === "failed") ) ) { // Only try to delete if the video file exists try { if (fs.existsSync(results.video)) { fs.unlinkSync(results.video); } } catch (error) { // Log the error but don't fail the test // eslint-disable-next-line no-console console.warn( `Warning: Could not delete video file: ${results.video}` ); // eslint-disable-next-line no-console console.warn(error); } } }); return config; }, experimentalRunAllSpecs: true, specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}", supportFile: "cypress/support/e2e.js", reporter: "cypress-mochawesome-reporter", reporterOptions: { reportDir: `cypress/reports/${connectorId}`, reportFilename: reportName, reportPageTitle: `[${connectorId}] Cypress test report`, embeddedScreenshots: true, overwrite: false, inlineAssets: true, saveJson: true, }, defaultCommandTimeout: 10000, pageLoadTimeout: 20000, responseTimeout: 30000, screenshotsFolder: screenshotsFolderName, video: true, videoCompression: 32, videosFolder: `cypress/videos/${connectorId}`, chromeWebSecurity: false, }, });
571
8,636
hyperswitch
cypress-tests/eslint.config.js
.js
import pluginJs from "@eslint/js"; import eslintConfigPrettier from "eslint-config-prettier"; import pluginCypress from "eslint-plugin-cypress/flat"; import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; import globals from "globals"; /** @type {import('eslint').Linter.Config[]} */ export default [ pluginJs.configs.recommended, pluginCypress.configs.recommended, eslintPluginPrettierRecommended, eslintConfigPrettier, { languageOptions: { globals: { ...globals.browser, ...globals.node, }, }, rules: { "no-unused-vars": "error", "no-undef": "error", "no-console": "warn", "prefer-const": "warn", "cypress/assertion-before-screenshot": "warn", "cypress/no-assigning-return-values": "warn", "cypress/no-force": "warn", "cypress/no-unnecessary-waiting": "warn", "cypress/no-async-tests": "error", "cypress/unsafe-to-chain-command": "warn", "prettier/prettier": "error", }, }, ];
264
8,637
hyperswitch
cypress-tests/README.md
.md
# Hyperswitch Cypress Testing Framework <!-- omit in toc --> ## Overview This is a comprehensive testing framework built with [Cypress](https://cypress.io) to automate testing for [Hyperswitch](https://github.com/juspay/hyperswitch/). The framework supports API testing with features like multiple credential management, configuration management, global state handling, and extensive utility functions. The framework provides extensive support for API testing with advanced features including: - [Multiple credential management](#multiple-credential-support) - [Dynamic configuration management](#dynamic-configuration-management) - Global state handling - Extensive utility functions - Parallel test execution - Connector-specific implementations ## Table of Contents - [Overview](#overview) - [Table of Contents](#table-of-contents) - [Quick Start](#quick-start) - [Getting Started](#getting-started) - [Prerequisites](#prerequisites) - [Installation](#installation) - [Running Tests](#running-tests) - [Development Mode (Interactive)](#development-mode-interactive) - [CI Mode (Headless)](#ci-mode-headless) - [Execute tests against multiple connectors or in parallel](#execute-tests-against-multiple-connectors-or-in-parallel) - [Test reports](#test-reports) - [Folder structure](#folder-structure) - [Adding tests](#adding-tests) - [Addition of test for a new connector](#addition-of-test-for-a-new-connector) - [Developing Core Features or adding new tests](#developing-core-features-or-adding-new-tests) - [1. Create or update test file](#1-create-or-update-test-file) - [2. Add New Commands](#2-add-new-commands) - [Managing global state](#managing-global-state) - [Debugging](#debugging) - [1. Interactive Mode](#1-interactive-mode) - [2. Logging](#2-logging) - [3. Screenshots](#3-screenshots) - [4. State Debugging](#4-state-debugging) - [5. Hooks](#5-hooks) - [6. Tasks](#6-tasks) - [Linting](#linting) - [Best Practices](#best-practices) - [Additional Resources](#additional-resources) - [Contributing](#contributing) - [Appendix](#appendix) - [Example creds.json](#example-credsjson) - [Multiple credential support](#multiple-credential-support) - [Dynamic configuration management](#dynamic-configuration-management) ## Quick Start For experienced users who want to get started quickly: ```shell git clone https://github.com/juspay/hyperswitch.git cd hyperswitch/cypress-tests npm ci # connector_id must be replaced with the connector name that is being tested (e.g. stripe, paypal, etc.) CYPRESS_CONNECTOR="connector_id" npm run cypress:ci ``` ## Getting Started ### Prerequisites - Node.js (18.x or above) - npm or yarn - [Hyperswitch development environment](https://github.com/juspay/hyperswitch/blob/main/docs/try_local_system.md) > [!NOTE] > To learn about the hardware requirements and software dependencies for running Cypress, refer to the [official documentation](https://docs.cypress.io/app/get-started/install-cypress). ### Installation 1. Clone the repository and switch to the project directory: ```shell git clone https://github.com/juspay/hyperswitch.git cd hyperswitch/cypress-tests ``` 2. Install Cypress and its dependencies to `cypress-tests` directory by running the following command: ```shell npm ci ``` Once installed, verify the installation by running: ```shell npx cypress --version ``` To learn about the supported commands, execute: ```shell npm run ``` 3. Set up the cards database: ```shell psql --host=localhost --port=5432 --username=db_user --dbname=hyperswitch_db --command "\copy cards_info FROM '.github/data/cards_info.csv' DELIMITER ',' CSV HEADER;" ``` 4. Set environment variables for cypress ```shell export CYPRESS_CONNECTOR="connector_id" export CYPRESS_BASEURL="base_url" export DEBUG=cypress:cli export CYPRESS_ADMINAPIKEY="admin_api_key" export CYPRESS_CONNECTOR_AUTH_FILE_PATH="path/to/creds.json" ``` > [!TIP] > It is recommended to install [direnv](https://github.com/direnv/direnv) and use a `.envrc` file to store these environment variables with `cypress-tests` directory. This will make it easier to manage environment variables while working with Cypress tests. > [!NOTE] > To learn about how `creds` file should be structured, refer to the [example.creds.json](#example-credsjson) section below. ### Running Tests Execution of Cypress tests can be done in two modes: Development mode (Interactive) and CI mode (Headless). The tests can be executed against a single connector or multiple connectors in parallel. Time taken to execute the tests will vary based on the number of connectors and the number of tests. For a single connector, the tests will take approximately 07-12 minutes to execute (this also depends on the hardware configurations). For Development mode, the tests will run in the Cypress UI where execution of tests can be seen in real-time and provides a larger area for debugging based on the need. In CI mode (Headless), tests run in the terminal without UI interaction and generate reports automatically. #### Development Mode (Interactive) ```shell npm run cypress ``` #### CI Mode (Headless) ```shell # All tests npm run cypress:ci # Specific test suites npm run cypress:misc # Miscellaneous tests (e.g. health check, memory cache etc.) npm run cypress:payment-method-list # Payment method list tests npm run cypress:payments # Payment tests npm run cypress:payouts # Payout tests npm run cypress:routing # Routing tests ``` #### Execute tests against multiple connectors or in parallel 1. Set additional environment variables: ```shell export PAYMENTS_CONNECTORS="payment_connector_1 payment_connector_2 payment_connector_3 payment_connector_4" export PAYOUTS_CONNECTORS="payout_connector_1 payout_connector_2 payout_connector_3" export PAYMENT_METHOD_LIST="" export ROUTING="" ``` 2. In terminal, execute: ```shell source .env ../scripts/execute_cypress.sh ``` Optionally, `--parallel <jobs (integer)>` can be passed to run cypress tests in parallel. By default, when `parallel` command is passed, it will be run in batches of `5`. ## Test reports The test reports are generated in the `cypress/reports` directory. The reports are generated in the `mochawesome` format and can be viewed in the browser. These reports does include: - screenshots of the failed tests - HTML and JSON reports ## Folder structure The folder structure of this directory is as follows: ```txt . ├── .prettierrc # prettier configs ├── README.md # this file ├── cypress │   ├── e2e │   │   ├── configs # Directory for utility functions related to connectors. │   │   │   ├── PaymentMethodList │   │ │   │   ├── connector_<1>.js │   │   │  │   ├── ... │   │   │  │   └── connector_<n>.js │   │   │   ├── Payment │   │   │   ├── Payout │   │   │   └── Routing │   │   └── spec # Directory for test scenarios related to connectors. │   │   ├── Misc │   │    │   ├── 00000-test_<0>.cy.js │   │     │   ├── ... │   │     │   └── 0000n-test_<n>.cy.js │   │   ├── Payment │   │   ├── PaymentMethodList │   │   ├── Payout │   │   └── Routing │   ├── fixtures # Directory for storing test data API request. │   │   ├── fixture_<1>.json │   │   ├── ... │   │   └── fixture_<n>.json │   ├── support # Directory for Cypress support files. │   │   ├── commands.js # File containing custom Cypress commands and utilities. │   │   ├── e2e.js │   │   └── redirectionHandler.js # Functions for handling redirections in tests │   └── utils │   ├── RequestBodyUtils.js # Utility Functions for handling request bodies │   ├── State.js │   └── featureFlags.js # Functions for validating and controlling feature flags ├── screenshots │ └── <connector-name> # Connector directory for storing screenshots of test failures │ └── <test-name>.png ├── cypress.config.js # Cypress configuration file. ├── eslint.config.js # linter configuration file. └── package.json # Node.js package file. ``` ## Adding tests ### Addition of test for a new connector 1. Include the connector details in the `creds.json` file 2. Add the new connector details to the ConnectorUtils folder (including CardNo and connector-specific information). To add a new Payment connector, refer to [`Stripe.js`](cypress/e2e/PaymentUtils/Stripe.js) file for reference. To add a new Payout connector, refer to [`Adyen.js`](cypress-tests/cypress/e2e/PayoutUtils/Adyen.js) file for reference. **File Naming:** Create a new file named <connector_name>.js for your specific connector. **Include Relevant Information:** Populate the file with all the necessary details specific to that connector. **Handling Unsupported Features:** - If a connector does not support a specific payment method or a feature: - The relevant configurations in the `<connector_name>.js` file can be omitted - The handling of unsupported or unimplemented features will be managed by the [`Commons.js`](cypress/e2e/PaymentUtils/Commons.js) file, which will throw the appropriate `unsupported` or `not implemented` error 3. In `Utils.js`, import the new connector details 4. If the connector has a specific redirection requirement, add relevant redirection logic in `support/redirectionHandler.js` ### Developing Core Features or adding new tests #### 1. Create or update test file To add a new test, create a new test file in the `e2e` directory under respective `service`. The test file should follow the naming convention `000<number>-<Service>Test.cy.js` and should contain the test cases related to the service. ```javascript // cypress/e2e/<Service>Test/NewFeature.cy.js import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; describe("New Feature", () => { let globalState; before(() => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("tests new functionality", () => { // Test implementation }); }); ``` #### 2. Add New Commands ```javascript // cypress/support/commands.js Cypress.Commands.add("newCommand", (params, globalState) => { const baseUrl = globalState.get("baseUrl"); const apiKey = globalState.get("apiKey"); const url = `${baseUrl}/endpoint`; cy.request({ method: "POST", url: url, headers: { "api-key": apiKey, }, body: params, }).then((response) => { // Assertions }); }); ``` ### Managing global state The global state is used to share data between tests. The global state is stored in the `State` class and is accessible across all tests. Can only be accessed in the `before` and `after` hooks. ## Debugging ### 1. Interactive Mode - Use `npm run cypress` for real-time test execution - View request/response details in Cypress UI - Use DevTools for deeper debugging ### 2. Logging ```javascript cy.task("cli_log", "Debug message"); cy.log("Test state:", globalState.data); ``` ### 3. Screenshots - Automatically captured on test failure - Custom screenshot capture: ```javascript cy.screenshot("debug-state"); ``` ### 4. State Debugging - Add state logging in hooks: ```javascript beforeEach(() => { cy.log("Current state:", JSON.stringify(globalState.data)); }); ``` ### 5. Hooks - If the `globalState` object does not contain latest data, it must be due to the hooks not being executed in the correct order - Add `cy.log(globalState)` to the test case to verify the data in the `globalState` object > [!NOTE] > Refer to the Cypress's official documentation for more information on hooks and their execution order [here](https://docs.cypress.io/app/core-concepts/writing-and-organizing-tests#Hooks). ### 6. Tasks - Use `cy.task` to interact with the Node.js environment - Task can only be used in `support` files and `spec` files. Using them in files outside these directories will result in unexpected behavior or errors like abrupt termination of the test suite ## Linting To run the formatting and lint checks, execute the following command: ```shell # Format the code npm run format # Check the formatting npm run format:check # Lint the code. This wont fix the logic issues, unused imports or variables npm run lint -- --fix ``` ## Best Practices 1. Use the global state for sharing data between tests 2. Implement proper error handling 3. Use appropriate wait strategies 4. Maintain test independence 5. Follow the existing folder structure 6. Document connector-specific behaviors 7. Use descriptive test and variable names 8. Use custom commands for repetitive tasks 9. Use `cy.log` for debugging and do not use `console.log` ## Additional Resources - [Cypress Documentation](https://docs.cypress.io/) - [API Testing Best Practices](https://docs.cypress.io/guides/end-to-end-testing/api-testing) - [Hyperswitch API Documentation](https://hyperswitch.io/docs) ## Contributing 1. Fork the repository 2. Create a feature branch 3. Add tests following the guidelines 4. Submit a pull request ## Appendix ### Example creds.json ```json { // Connector with single credential support and metadata support "adyen": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" }, "metadata": { "key": "value" } }, "bankofamerica": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } }, "bluesnap": { "connector_account_details": { "auth_type": "BodyKey", "api_key": "api_key", "key1": "key1" } }, // Connector with multiple credential support "cybersource": { "connector_1": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } }, "connector_2": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } } }, "nmi": { "connector_account_details": { "auth_type": "BodyKey", "api_key": "api_key", "key1": "key1" } }, "paypal": { "connector_account_details": { "auth_type": "BodyKey", "api_key": "api_key", "key1": "key1" } }, "stripe": { "connector_account_details": { "auth_type": "HeaderKey", "api_key": "api_key" } }, "trustpay": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } } } ``` ### Multiple credential support - There are some use cases where a connector supports a feature that requires a different set of API keys (example: Network transaction ID for Stripe expects a different API Key to be passed). This forces the need for having multiple credentials that serves different use cases - This basically means that a connector can have multiple credentials - At present the maximum number of credentials that can be supported is `2` - The `creds.json` file should be structured to support multiple credentials for such connectors. The `creds.json` file should be structured as follows: ```json { "connector_name": { "connector_1": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } }, "connector_2": { "connector_account_details": { "auth_type": "SignatureKey", "api_key": "api_key", "key1": "key1", "api_secret": "api_secret" } } } } ``` ### Dynamic configuration management - `Configs` is the new `object` that is introduced to manage the dynamic configurations that are required for the tests - This is supposed to be passed in an exchange (configuration for a specific can be passed to a test based on the need and this will impact everywhere in the test execution for that connector) - At present, only 3 configs are supported: - `DELAY`: This is used to introduce a delay in the test execution. This is useful when a connector requires a delay in order to perform a specific operation - `CONNECTOR_CREDENTIAL`: This is used to control the connector credentials that are used in the test execution. This is useful only when a connector supports multiple credentials and the test needs to be executed with a specific credential - `TRIGGER_SKIP`: This is used to skip a test execution (preferably redirection flows). This is useful when a test is does not support a specific redirection flow and needs to be skipped - Example: In order to refund a payment in Trustpay, a `DELAY` of at least `5` seconds is required. By passing `DELAY` to the `Configs` object for Trustpay, the delay will be applied to all the tests that are executed for Trustpay ```json { "Configs": { "DELAY": { "STATUS": true, "TIMEOUT": 15000 } } } ```
4,280
8,638
hyperswitch
cypress-tests/package-lock.json
.json
{ "name": "test", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "test", "version": "1.0.0", "license": "ISC", "devDependencies": { "@eslint/js": "^9.23.0", "cypress": "^14.2.1", "cypress-mochawesome-reporter": "^3.8.2", "eslint": "^9.23.0", "eslint-config-prettier": "^10.1.1", "eslint-plugin-cypress": "^4.2.0", "eslint-plugin-prettier": "^5.2.5", "globals": "^16.0.0", "jsqr": "^1.4.0", "prettier": "^3.5.3" } }, "node_modules/@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true, "license": "MIT", "optional": true, "engines": { "node": ">=0.1.90" } }, "node_modules/@cypress/request": { "version": "3.0.8", "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.8.tgz", "integrity": "sha512-h0NFgh1mJmm1nr4jCwkGHwKneVYKghUyWe6TMNrk0B9zsjAJxpg8C4/+BAcmLgCPa1vj1V8rNUaILl+zYRUWBQ==", "dev": true, "license": "Apache-2.0", "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", "caseless": "~0.12.0", "combined-stream": "~1.0.6", "extend": "~3.0.2", "forever-agent": "~0.6.1", "form-data": "~4.0.0", "http-signature": "~1.4.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", "json-stringify-safe": "~5.0.1", "mime-types": "~2.1.19", "performance-now": "^2.1.0", "qs": "6.14.0", "safe-buffer": "^5.1.2", "tough-cookie": "^5.0.0", "tunnel-agent": "^0.6.0", "uuid": "^8.3.2" }, "engines": { "node": ">= 6" } }, "node_modules/@cypress/xvfb": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", "dev": true, "license": "MIT", "dependencies": { "debug": "^3.1.0", "lodash.once": "^4.1.1" } }, "node_modules/@cypress/xvfb/node_modules/debug": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", "dev": true, "license": "MIT", "dependencies": { "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint-community/regexpp": { "version": "4.12.1", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/config-array": { "version": "0.19.2", "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", "minimatch": "^3.1.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/config-helpers": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.0.tgz", "integrity": "sha512-yJLLmLexii32mGrhW29qvU3QBVTu0GUmEf/J4XsBtVhp4JkIUFN/BjWqTF63yRvGApIDpZm5fa97LtYtINmfeQ==", "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/core": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", "dev": true, "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.15" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/eslintrc": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^10.0.1", "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/globals": { "version": "14.0.0", "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, "license": "MIT", "engines": { "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/@eslint/js": { "version": "9.23.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.23.0.tgz", "integrity": "sha512-35MJ8vCPU0ZMxo7zfev2pypqTwWTofFZO6m4KAtdoFhRpLJUpHTZZ+KB3C7Hb1d7bULYwO4lJXGCi5Se+8OMbw==", "dev": true, "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/object-schema": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/plugin-kit": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/core": "^0.12.0", "levn": "^0.4.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18.0" } }, "node_modules/@humanfs/node": { "version": "0.16.6", "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", "dev": true, "license": "Apache-2.0", "dependencies": { "@humanfs/core": "^0.19.1", "@humanwhocodes/retry": "^0.3.0" }, "engines": { "node": ">=18.18.0" } }, "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18" }, "funding": { "type": "github", "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=12.22" }, "funding": { "type": "github", "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@humanwhocodes/retry": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18" }, "funding": { "type": "github", "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@pkgr/core": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.0.tgz", "integrity": "sha512-vsJDAkYR6qCPu+ioGScGiMYR7LvZYIXh/dlQeviqoTWNCVfKTLYD/LkNWH4Mxsv2a5vpIRc77FN5DnmK1eBggQ==", "dev": true, "license": "MIT", "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/unts" } }, "node_modules/@types/estree": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "dev": true, "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true, "license": "MIT" }, "node_modules/@types/node": { "version": "22.10.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.1.tgz", "integrity": "sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==", "dev": true, "license": "MIT", "optional": true, "dependencies": { "undici-types": "~6.20.0" } }, "node_modules/@types/sinonjs__fake-timers": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz", "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", "dev": true, "license": "MIT" }, "node_modules/@types/sizzle": { "version": "2.3.9", "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.9.tgz", "integrity": "sha512-xzLEyKB50yqCUPUJkIsrVvoWNfFUbIZI+RspLWt8u+tIW/BetMBZtgV2LY/2o+tYH8dRvQ+eoPf3NdhQCcLE2w==", "dev": true, "license": "MIT" }, "node_modules/@types/yauzl": { "version": "2.10.3", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", "dev": true, "license": "MIT", "optional": true, "dependencies": { "@types/node": "*" } }, "node_modules/acorn": { "version": "8.14.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" }, "engines": { "node": ">=0.4.0" } }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, "license": "MIT", "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" }, "engines": { "node": ">=8" } }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" }, "funding": { "type": "github", "url": "https://github.com/sponsors/epoberezkin" } }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "license": "ISC", "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" }, "engines": { "node": ">= 8" } }, "node_modules/arch": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT" }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true, "license": "Python-2.0" }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dev": true, "license": "MIT", "dependencies": { "safer-buffer": "~2.1.0" } }, "node_modules/assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "dev": true, "license": "MIT", "engines": { "node": ">=0.8" } }, "node_modules/astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/async": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", "dev": true, "license": "MIT" }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true, "license": "MIT" }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, "license": "ISC", "engines": { "node": ">= 4.0.0" } }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", "dev": true, "license": "Apache-2.0", "engines": { "node": "*" } }, "node_modules/aws4": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", "dev": true, "license": "MIT" }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT" }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "tweetnacl": "^0.14.3" } }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/blob-util": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/blob-util/-/blob-util-2.0.2.tgz", "integrity": "sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==", "dev": true, "license": "Apache-2.0" }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true, "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true, "license": "ISC", "peer": true }, "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "node_modules/buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true, "license": "MIT", "engines": { "node": "*" } }, "node_modules/cachedir": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", "integrity": "sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/call-bound": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", "dev": true, "license": "Apache-2.0" }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/chalk/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, "node_modules/check-more-types": { "version": "2.24.0", "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "engines": { "node": ">= 8.10.0" }, "funding": { "url": "https://paulmillr.com/funding/" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "node_modules/chokidar/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "license": "ISC", "peer": true, "dependencies": { "is-glob": "^4.0.1" }, "engines": { "node": ">= 6" } }, "node_modules/ci-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.1.0.tgz", "integrity": "sha512-HutrvTNsF48wnxkzERIXOe5/mlcfFcbfCmwcg6CJnizbSue78AbDt+1cgl26zwn61WFxhcPykPfZrbqjGmBb4A==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/sibiraj-s" } ], "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" }, "engines": { "node": ">=8" } }, "node_modules/cli-table3": { "version": "0.6.5", "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", "dev": true, "license": "MIT", "dependencies": { "string-width": "^4.2.0" }, "engines": { "node": "10.* || >= 12.*" }, "optionalDependencies": { "@colors/colors": "1.5.0" } }, "node_modules/cli-truncate": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", "dev": true, "license": "MIT", "dependencies": { "slice-ansi": "^3.0.0", "string-width": "^4.2.0" }, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, "license": "ISC", "peer": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, "engines": { "node": ">=7.0.0" } }, "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, "license": "MIT" }, "node_modules/colorette": { "version": "2.0.20", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true, "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, "engines": { "node": ">= 0.8" } }, "node_modules/commander": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/common-tags": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "dev": true, "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true, "license": "MIT" }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", "dev": true, "license": "MIT" }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" }, "engines": { "node": ">= 8" } }, "node_modules/cypress": { "version": "14.2.1", "resolved": "https://registry.npmjs.org/cypress/-/cypress-14.2.1.tgz", "integrity": "sha512-5xd0E7fUp0pjjib1D7ljkmCwFDgMkWuW06jWiz8dKrI7MNRrDo0C65i4Sh+oZ9YHjMHZRJBR0XZk1DfekOhOUw==", "dev": true, "hasInstallScript": true, "dependencies": { "@cypress/request": "^3.0.8", "@cypress/xvfb": "^1.2.4", "@types/sinonjs__fake-timers": "8.1.1", "@types/sizzle": "^2.3.2", "arch": "^2.2.0", "blob-util": "^2.0.2", "bluebird": "^3.7.2", "buffer": "^5.7.1", "cachedir": "^2.3.0", "chalk": "^4.1.0", "check-more-types": "^2.24.0", "ci-info": "^4.1.0", "cli-cursor": "^3.1.0", "cli-table3": "~0.6.5", "commander": "^6.2.1", "common-tags": "^1.8.0", "dayjs": "^1.10.4", "debug": "^4.3.4", "enquirer": "^2.3.6", "eventemitter2": "6.4.7", "execa": "4.1.0", "executable": "^4.1.1", "extract-zip": "2.0.1", "figures": "^3.2.0", "fs-extra": "^9.1.0", "getos": "^3.2.1", "is-installed-globally": "~0.4.0", "lazy-ass": "^1.6.0", "listr2": "^3.8.3", "lodash": "^4.17.21", "log-symbols": "^4.0.0", "minimist": "^1.2.8", "ospath": "^1.2.2", "pretty-bytes": "^5.6.0", "process": "^0.11.10", "proxy-from-env": "1.0.0", "request-progress": "^3.0.0", "semver": "^7.7.1", "supports-color": "^8.1.1", "tmp": "~0.2.3", "tree-kill": "1.2.2", "untildify": "^4.0.0", "yauzl": "^2.10.0" }, "bin": { "cypress": "bin/cypress" }, "engines": { "node": "^18.0.0 || ^20.0.0 || >=22.0.0" } }, "node_modules/cypress-mochawesome-reporter": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/cypress-mochawesome-reporter/-/cypress-mochawesome-reporter-3.8.2.tgz", "integrity": "sha512-oJZkNzhNmN9ZD+LmZyFuPb8aWaIijyHyqYh52YOBvR6B6ckfJNCHP3A98a+/nG0H4t46CKTNwo+wNpMa4d2kjA==", "dev": true, "license": "MIT", "dependencies": { "commander": "^10.0.1", "fs-extra": "^10.0.1", "mochawesome": "^7.1.3", "mochawesome-merge": "^4.2.1", "mochawesome-report-generator": "^6.2.0" }, "bin": { "generate-mochawesome-report": "cli.js" }, "engines": { "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/LironEr" }, "peerDependencies": { "cypress": ">=6.2.0" } }, "node_modules/cypress-mochawesome-reporter/node_modules/commander": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", "dev": true, "license": "MIT", "engines": { "node": ">=14" } }, "node_modules/cypress-mochawesome-reporter/node_modules/fs-extra": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { "node": ">=12" } }, "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" }, "engines": { "node": ">=0.10" } }, "node_modules/dateformat": { "version": "4.6.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", "dev": true, "license": "MIT", "engines": { "node": "*" } }, "node_modules/dayjs": { "version": "1.11.13", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", "dev": true, "license": "MIT" }, "node_modules/debug": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" }, "engines": { "node": ">=6.0" }, "peerDependenciesMeta": { "supports-color": { "optional": true } } }, "node_modules/decamelize": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true, "license": "MIT" }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, "license": "MIT", "engines": { "node": ">=0.4.0" } }, "node_modules/diff": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dev": true, "license": "MIT", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" } }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, "license": "MIT" }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "license": "MIT", "dependencies": { "once": "^1.4.0" } }, "node_modules/enquirer": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "dev": true, "license": "MIT", "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8.6" } }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-object-atoms": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-set-tostringtag": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", "dev": true, "license": "MIT" }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "license": "MIT", "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint": { "version": "9.23.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.23.0.tgz", "integrity": "sha512-jV7AbNoFPAY1EkFYpLq5bslU9NLNO8xnEeQXwErNibVryjk67wHVmddTBilc5srIttJDBrB0eMHKZBFbSIABCw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.2", "@eslint/config-helpers": "^0.2.0", "@eslint/core": "^0.12.0", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "9.23.0", "@eslint/plugin-kit": "^0.2.7", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.3.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://eslint.org/donate" }, "peerDependencies": { "jiti": "*" }, "peerDependenciesMeta": { "jiti": { "optional": true } } }, "node_modules/eslint-config-prettier": { "version": "10.1.1", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.1.tgz", "integrity": "sha512-4EQQr6wXwS+ZJSzaR5ZCrYgLxqvUjdXctaEtBqHcbkW944B1NQyO4qpdHQbXBONfwxXdkAY81HH4+LUfrg+zPw==", "dev": true, "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, "peerDependencies": { "eslint": ">=7.0.0" } }, "node_modules/eslint-plugin-cypress": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-4.2.0.tgz", "integrity": "sha512-v5cyt0VYb1tEEODBJSE44PocYOwQsckyexJhCs7LtdD3FGO6D2GjnZB2s2Sts4RcxdxECTWX01nObOZRs26bQw==", "dev": true, "license": "MIT", "dependencies": { "globals": "^15.11.0" }, "peerDependencies": { "eslint": ">=9" } }, "node_modules/eslint-plugin-cypress/node_modules/globals": { "version": "15.15.0", "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", "dev": true, "license": "MIT", "engines": { "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint-plugin-prettier": { "version": "5.2.5", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.5.tgz", "integrity": "sha512-IKKP8R87pJyMl7WWamLgPkloB16dagPIdd2FjBDbyRYPKo93wS/NbCOPh6gH+ieNLC+XZrhJt/kWj0PS/DFdmg==", "dev": true, "license": "MIT", "dependencies": { "prettier-linter-helpers": "^1.0.0", "synckit": "^0.10.2" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { "@types/eslint": ">=8.0.0", "eslint": ">=8.0.0", "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", "prettier": ">=3.0.0" }, "peerDependenciesMeta": { "@types/eslint": { "optional": true }, "eslint-config-prettier": { "optional": true } } }, "node_modules/eslint-scope": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-visitor-keys": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/espree": { "version": "10.3.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.14.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^4.2.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/esquery": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, "engines": { "node": ">=0.10" } }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, "engines": { "node": ">=4.0" } }, "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/eventemitter2": { "version": "6.4.7", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", "integrity": "sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==", "dev": true, "license": "MIT" }, "node_modules/execa": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", "dev": true, "license": "MIT", "dependencies": { "cross-spawn": "^7.0.0", "get-stream": "^5.0.0", "human-signals": "^1.1.1", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.0", "onetime": "^5.1.0", "signal-exit": "^3.0.2", "strip-final-newline": "^2.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, "node_modules/executable": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", "dev": true, "license": "MIT", "dependencies": { "pify": "^2.2.0" }, "engines": { "node": ">=4" } }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true, "license": "MIT" }, "node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "debug": "^4.1.1", "get-stream": "^5.1.0", "yauzl": "^2.10.0" }, "bin": { "extract-zip": "cli.js" }, "engines": { "node": ">= 10.17.0" }, "optionalDependencies": { "@types/yauzl": "^2.9.1" } }, "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "dev": true, "engines": [ "node >=0.6.0" ], "license": "MIT" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true, "license": "MIT" }, "node_modules/fast-diff": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true, "license": "Apache-2.0" }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true, "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true, "license": "MIT" }, "node_modules/fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, "license": "MIT", "dependencies": { "pend": "~1.2.0" } }, "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" }, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/figures/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, "license": "MIT", "dependencies": { "flat-cache": "^4.0.0" }, "engines": { "node": ">=16.0.0" } }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "to-regex-range": "^5.0.1" }, "engines": { "node": ">=8" } }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, "license": "BSD-3-Clause", "peer": true, "bin": { "flat": "cli.js" } }, "node_modules/flat-cache": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, "license": "MIT", "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" }, "engines": { "node": ">=16" } }, "node_modules/flatted": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", "dev": true, "license": "ISC" }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "dev": true, "license": "Apache-2.0", "engines": { "node": "*" } }, "node_modules/form-data": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", "dev": true, "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "mime-types": "^2.1.12" }, "engines": { "node": ">= 6" } }, "node_modules/fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { "node": ">=10" } }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true, "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, "os": [ "darwin" ], "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, "node_modules/fsu": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/fsu/-/fsu-1.1.1.tgz", "integrity": "sha512-xQVsnjJ/5pQtcKh+KjUoZGzVWn4uNkchxTF6Lwjr4Gf7nQr8fmUfhKJ62zE77+xQg9xnxi5KUps7XGs+VC986A==", "dev": true, "license": "MIT" }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/get-stream": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, "license": "MIT", "dependencies": { "pump": "^3.0.0" }, "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/getos": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz", "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==", "dev": true, "license": "MIT", "dependencies": { "async": "^3.2.0" } }, "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" } }, "node_modules/glob": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^5.0.1", "once": "^1.3.0" }, "engines": { "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, "engines": { "node": ">=10.13.0" } }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/glob/node_modules/minimatch": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { "node": ">=10" } }, "node_modules/global-dirs": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", "dev": true, "license": "MIT", "dependencies": { "ini": "2.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/globals": { "version": "16.0.0", "resolved": "https://registry.npmjs.org/globals/-/globals-16.0.0.tgz", "integrity": "sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==", "dev": true, "license": "MIT", "engines": { "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true, "license": "ISC" }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-tostringtag": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, "license": "MIT", "peer": true, "bin": { "he": "bin/he" } }, "node_modules/http-signature": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.4.0.tgz", "integrity": "sha512-G5akfn7eKbpDN+8nPS/cb57YeA1jLTVxjpCj7tmm3QKPdyDy7T+qSC40e9ptydSWvkwjSXw1VbkpyEm39ukeAg==", "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^2.0.2", "sshpk": "^1.18.0" }, "engines": { "node": ">=0.10" } }, "node_modules/human-signals": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=8.12.0" } }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "BSD-3-Clause" }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/import-fresh": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dev": true, "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" }, "engines": { "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "license": "MIT", "engines": { "node": ">=0.8.19" } }, "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true, "license": "ISC" }, "node_modules/ini": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", "dev": true, "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "binary-extensions": "^2.0.0" }, "engines": { "node": ">=8" } }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, "engines": { "node": ">=0.10.0" } }, "node_modules/is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", "dev": true, "license": "MIT", "dependencies": { "global-dirs": "^3.0.0", "is-path-inside": "^3.0.2" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=0.12.0" } }, "node_modules/is-path-inside": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=8" } }, "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, "license": "MIT", "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", "dev": true, "license": "MIT" }, "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "dev": true, "license": "MIT", "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true, "license": "ISC" }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", "dev": true, "license": "MIT" }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true, "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", "dev": true, "license": "MIT" }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "dev": true, "license": "MIT" }, "node_modules/json-schema": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", "dev": true, "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true, "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true, "license": "MIT" }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", "dev": true, "license": "ISC" }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "node_modules/jsprim": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==", "dev": true, "engines": [ "node >=0.6.0" ], "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.4.0", "verror": "1.10.0" } }, "node_modules/jsqr": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/jsqr/-/jsqr-1.4.0.tgz", "integrity": "sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A==", "dev": true, "license": "Apache-2.0" }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } }, "node_modules/lazy-ass": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==", "dev": true, "license": "MIT", "engines": { "node": "> 0.8" } }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" }, "engines": { "node": ">= 0.8.0" } }, "node_modules/listr2": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==", "dev": true, "license": "MIT", "dependencies": { "cli-truncate": "^2.1.0", "colorette": "^2.0.16", "log-update": "^4.0.0", "p-map": "^4.0.0", "rfdc": "^1.3.0", "rxjs": "^7.5.1", "through": "^2.3.8", "wrap-ansi": "^7.0.0" }, "engines": { "node": ">=10.0.0" }, "peerDependencies": { "enquirer": ">= 2.3.0 < 3" }, "peerDependenciesMeta": { "enquirer": { "optional": true } } }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true, "license": "MIT" }, "node_modules/lodash.isempty": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz", "integrity": "sha512-oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==", "dev": true, "license": "MIT" }, "node_modules/lodash.isfunction": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", "integrity": "sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==", "dev": true, "license": "MIT" }, "node_modules/lodash.isobject": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", "integrity": "sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA==", "dev": true, "license": "MIT" }, "node_modules/lodash.isstring": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", "dev": true, "license": "MIT" }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true, "license": "MIT" }, "node_modules/lodash.once": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", "dev": true, "license": "MIT" }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/log-update": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", "dev": true, "license": "MIT", "dependencies": { "ansi-escapes": "^4.3.0", "cli-cursor": "^3.1.0", "slice-ansi": "^4.0.0", "wrap-ansi": "^6.2.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/log-update/node_modules/slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, "node_modules/log-update/node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { "node": ">=8" } }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true, "license": "MIT" }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, "engines": { "node": ">= 0.6" } }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, "engines": { "node": "*" } }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/mocha": { "version": "10.8.2", "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "ansi-colors": "^4.1.3", "browser-stdout": "^1.3.1", "chokidar": "^3.5.3", "debug": "^4.3.5", "diff": "^5.2.0", "escape-string-regexp": "^4.0.0", "find-up": "^5.0.0", "glob": "^8.1.0", "he": "^1.2.0", "js-yaml": "^4.1.0", "log-symbols": "^4.1.0", "minimatch": "^5.1.6", "ms": "^2.1.3", "serialize-javascript": "^6.0.2", "strip-json-comments": "^3.1.1", "supports-color": "^8.1.1", "workerpool": "^6.5.1", "yargs": "^16.2.0", "yargs-parser": "^20.2.9", "yargs-unparser": "^2.0.0" }, "bin": { "_mocha": "bin/_mocha", "mocha": "bin/mocha.js" }, "engines": { "node": ">= 14.0.0" } }, "node_modules/mocha/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/mocha/node_modules/minimatch": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { "node": ">=10" } }, "node_modules/mochawesome": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/mochawesome/-/mochawesome-7.1.3.tgz", "integrity": "sha512-Vkb3jR5GZ1cXohMQQ73H3cZz7RoxGjjUo0G5hu0jLaW+0FdUxUwg3Cj29bqQdh0rFcnyV06pWmqmi5eBPnEuNQ==", "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.1.2", "diff": "^5.0.0", "json-stringify-safe": "^5.0.1", "lodash.isempty": "^4.4.0", "lodash.isfunction": "^3.0.9", "lodash.isobject": "^3.0.2", "lodash.isstring": "^4.0.1", "mochawesome-report-generator": "^6.2.0", "strip-ansi": "^6.0.1", "uuid": "^8.3.2" }, "peerDependencies": { "mocha": ">=7" } }, "node_modules/mochawesome-merge": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/mochawesome-merge/-/mochawesome-merge-4.3.0.tgz", "integrity": "sha512-1roR6g+VUlfdaRmL8dCiVpKiaUhbPVm1ZQYUM6zHX46mWk+tpsKVZR6ba98k2zc8nlPvYd71yn5gyH970pKBSw==", "dev": true, "license": "MIT", "dependencies": { "fs-extra": "^7.0.1", "glob": "^7.1.6", "yargs": "^15.3.1" }, "bin": { "mochawesome-merge": "bin/mochawesome-merge.js" }, "engines": { "node": ">=10.0.0" } }, "node_modules/mochawesome-merge/node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/mochawesome-merge/node_modules/cliui": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, "node_modules/mochawesome-merge/node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/mochawesome-merge/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" }, "engines": { "node": ">=8" } }, "node_modules/mochawesome-merge/node_modules/fs-extra": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "dev": true, "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", "universalify": "^0.1.0" }, "engines": { "node": ">=6 <7 || >=8" } }, "node_modules/mochawesome-merge/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" }, "engines": { "node": "*" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/mochawesome-merge/node_modules/jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "node_modules/mochawesome-merge/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, "engines": { "node": ">=8" } }, "node_modules/mochawesome-merge/node_modules/p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, "engines": { "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/mochawesome-merge/node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, "engines": { "node": ">=8" } }, "node_modules/mochawesome-merge/node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, "license": "MIT", "engines": { "node": ">= 4.0.0" } }, "node_modules/mochawesome-merge/node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { "node": ">=8" } }, "node_modules/mochawesome-merge/node_modules/y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true, "license": "ISC" }, "node_modules/mochawesome-merge/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", "find-up": "^4.1.0", "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", "string-width": "^4.2.0", "which-module": "^2.0.0", "y18n": "^4.0.0", "yargs-parser": "^18.1.2" }, "engines": { "node": ">=8" } }, "node_modules/mochawesome-merge/node_modules/yargs-parser": { "version": "18.1.3", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" }, "engines": { "node": ">=6" } }, "node_modules/mochawesome-report-generator": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/mochawesome-report-generator/-/mochawesome-report-generator-6.2.0.tgz", "integrity": "sha512-Ghw8JhQFizF0Vjbtp9B0i//+BOkV5OWcQCPpbO0NGOoxV33o+gKDYU0Pr2pGxkIHnqZ+g5mYiXF7GMNgAcDpSg==", "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.1.2", "dateformat": "^4.5.1", "escape-html": "^1.0.3", "fs-extra": "^10.0.0", "fsu": "^1.1.1", "lodash.isfunction": "^3.0.9", "opener": "^1.5.2", "prop-types": "^15.7.2", "tcomb": "^3.2.17", "tcomb-validation": "^3.3.0", "validator": "^13.6.0", "yargs": "^17.2.1" }, "bin": { "marge": "bin/cli.js" } }, "node_modules/mochawesome-report-generator/node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" }, "engines": { "node": ">=12" } }, "node_modules/mochawesome-report-generator/node_modules/fs-extra": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { "node": ">=12" } }, "node_modules/mochawesome-report-generator/node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" }, "engines": { "node": ">=12" } }, "node_modules/mochawesome-report-generator/node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, "license": "ISC", "engines": { "node": ">=12" } }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true, "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=0.10.0" } }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, "engines": { "node": ">=8" } }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, "engines": { "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true, "license": "(WTFPL OR MIT)", "bin": { "opener": "bin/opener-bin.js" } }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, "license": "MIT", "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" } }, "node_modules/ospath": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", "dev": true, "license": "MIT" }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/p-locate": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", "dev": true, "license": "MIT", "dependencies": { "aggregate-error": "^3.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, "engines": { "node": ">=6" } }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true, "license": "MIT" }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", "dev": true, "license": "MIT" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=8.6" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/prettier": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, "engines": { "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, "license": "MIT", "dependencies": { "fast-diff": "^1.1.2" }, "engines": { "node": ">=6.0.0" } }, "node_modules/pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", "dev": true, "license": "MIT", "engines": { "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.6.0" } }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dev": true, "license": "MIT", "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "node_modules/proxy-from-env": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", "integrity": "sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==", "dev": true, "license": "MIT" }, "node_modules/pump": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", "dev": true, "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/qs": { "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true, "license": "MIT" }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "picomatch": "^2.2.1" }, "engines": { "node": ">=8.10.0" } }, "node_modules/request-progress": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", "integrity": "sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==", "dev": true, "license": "MIT", "dependencies": { "throttleit": "^1.0.0" } }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true, "license": "ISC" }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/restore-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, "license": "MIT", "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" }, "engines": { "node": ">=8" } }, "node_modules/rfdc": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true, "license": "MIT" }, "node_modules/rxjs": { "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, "license": "Apache-2.0", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT" }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "license": "MIT" }, "node_modules/semver": { "version": "7.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" }, "engines": { "node": ">=10" } }, "node_modules/serialize-javascript": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "license": "BSD-3-Clause", "peer": true, "dependencies": { "randombytes": "^2.1.0" } }, "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true, "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, "engines": { "node": ">=8" } }, "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/side-channel": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-list": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-weakmap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true, "license": "ISC" }, "node_modules/slice-ansi": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" }, "engines": { "node": ">=8" } }, "node_modules/sshpk": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dev": true, "license": "MIT", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", "bcrypt-pbkdf": "^1.0.0", "dashdash": "^1.12.0", "ecc-jsbn": "~0.1.1", "getpass": "^0.1.1", "jsbn": "~0.1.0", "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" }, "bin": { "sshpk-conv": "bin/sshpk-conv", "sshpk-sign": "bin/sshpk-sign", "sshpk-verify": "bin/sshpk-verify" }, "engines": { "node": ">=0.10.0" } }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" } }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, "license": "MIT", "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/synckit": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.10.3.tgz", "integrity": "sha512-R1urvuyiTaWfeCggqEvpDJwAlDVdsT9NM+IP//Tk2x7qHCkSvBk/fwFgw/TLAHzZlrAnnazMcRw0ZD8HlYFTEQ==", "dev": true, "license": "MIT", "dependencies": { "@pkgr/core": "^0.2.0", "tslib": "^2.8.1" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/unts" } }, "node_modules/tcomb": { "version": "3.2.29", "resolved": "https://registry.npmjs.org/tcomb/-/tcomb-3.2.29.tgz", "integrity": "sha512-di2Hd1DB2Zfw6StGv861JoAF5h/uQVu/QJp2g8KVbtfKnoHdBQl5M32YWq6mnSYBQ1vFFrns5B1haWJL7rKaOQ==", "dev": true, "license": "MIT" }, "node_modules/tcomb-validation": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/tcomb-validation/-/tcomb-validation-3.4.1.tgz", "integrity": "sha512-urVVMQOma4RXwiVCa2nM2eqrAomHROHvWPuj6UkDGz/eb5kcy0x6P0dVt6kzpUZtYMNoAqJLWmz1BPtxrtjtrA==", "dev": true, "license": "MIT", "dependencies": { "tcomb": "^3.0.0" } }, "node_modules/throttleit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.1.tgz", "integrity": "sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==", "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true, "license": "MIT" }, "node_modules/tldts": { "version": "6.1.85", "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.85.tgz", "integrity": "sha512-gBdZ1RjCSevRPFix/hpaUWeak2/RNUZB4/8frF1r5uYMHjFptkiT0JXIebWvgI/0ZHXvxaUDDJshiA0j6GdL3w==", "dev": true, "license": "MIT", "dependencies": { "tldts-core": "^6.1.85" }, "bin": { "tldts": "bin/cli.js" } }, "node_modules/tldts-core": { "version": "6.1.85", "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.85.tgz", "integrity": "sha512-DTjUVvxckL1fIoPSb3KE7ISNtkWSawZdpfxGxwiIrZoO6EbHVDXXUIlIuWympPaeS+BLGyggozX/HTMsRAdsoA==", "dev": true, "license": "MIT" }, "node_modules/tmp": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", "dev": true, "license": "MIT", "engines": { "node": ">=14.14" } }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "is-number": "^7.0.0" }, "engines": { "node": ">=8.0" } }, "node_modules/tough-cookie": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz", "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "tldts": "^6.1.32" }, "engines": { "node": ">=16" } }, "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", "dev": true, "license": "MIT", "bin": { "tree-kill": "cli.js" } }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "dev": true, "license": "0BSD" }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dev": true, "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" }, "engines": { "node": "*" } }, "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true, "license": "Unlicense" }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, "engines": { "node": ">= 0.8.0" } }, "node_modules/type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/undici-types": { "version": "6.20.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", "dev": true, "license": "MIT", "optional": true }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, "license": "MIT", "engines": { "node": ">= 10.0.0" } }, "node_modules/untildify": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } }, "node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/validator": { "version": "13.12.0", "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.10" } }, "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", "dev": true, "engines": [ "node >=0.6.0" ], "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/node-which" }, "engines": { "node": ">= 8" } }, "node_modules/which-module": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", "dev": true, "license": "ISC" }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/workerpool": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", "dev": true, "license": "Apache-2.0", "peer": true }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true, "license": "ISC" }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" }, "engines": { "node": ">=10" } }, "node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, "license": "ISC", "peer": true, "engines": { "node": ">=10" } }, "node_modules/yargs-unparser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", "flat": "^5.0.2", "is-plain-obj": "^2.1.0" }, "engines": { "node": ">=10" } }, "node_modules/yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dev": true, "license": "MIT", "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, "license": "MIT", "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } } } }
63,894
8,639
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00026-DeletedCustomerPsyncFlow.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - Customer Deletion and Psync", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - Psync after Customer Deletion for Automatic Capture", () => { context("No3DS Card - Psync after Customer Deletion ", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Delete Customer", () => { cy.customerDeleteCall(globalState); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("3DS Card - Psync after Customer Deletion ", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Delete Customer", () => { cy.customerDeleteCall(globalState); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); }); context("Card - Psync after Customer Deletion for Manual Capture", () => { context("No3DS Card - Psync after Customer Deletion ", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Capture Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Delete Customer", () => { cy.customerDeleteCall(globalState); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("3DS Card - Psync after Customer Deletion ", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Capture Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Delete Customer", () => { cy.customerDeleteCall(globalState); }); it("Retrieve Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); }); });
2,061
8,640
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - SingleUse Mandates flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateSingleUseNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - NoThreeDS Create + Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateSingleUseNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list-mandate-call-test", () => { cy.listMandateCallTest(globalState); }); } ); context( "Card - No threeDS Create + Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateSingleUseNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("list-mandate-call-test", () => { cy.listMandateCallTest(globalState); }); } ); });
1,196
8,641
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00002-CustomerCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; let globalState; describe("Customer Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); });
122
8,642
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00004-NoThreeDSAutoCapture.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - NoThreeDS payment flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card-NoThreeDS payment flow test Create and confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm No 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("Card-NoThreeDS payment flow test Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("Card-NoThreeDS payment with shipping cost", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentWithShippingCost"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm No 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentConfirmWithShippingCost"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentConfirmWithShippingCost"]; cy.retrievePaymentCallTest(globalState, data); }); }); });
921
8,643
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; let paymentIntentBody; let paymentCreateConfirmBody; describe("Corner cases", () => { // This is needed to get flush out old data beforeEach("seed global state", () => { paymentIntentBody = Cypress._.cloneDeep(fixtures.createPaymentBody); paymentCreateConfirmBody = Cypress._.cloneDeep( fixtures.createConfirmPaymentBody ); }); context("[Payment] Invalid Info", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("[Payment] Invalid card number", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidCardNumber"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid expiry month", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidExpiryMonth"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid expiry year", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidExpiryYear"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid card CVV", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidCardCvv"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid currency", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidCurrency"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid capture method", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidCaptureMethod"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid payment method", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidPaymentMethod"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Invalid `amount_to_capture`", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["InvalidAmountToCapture"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); it("[Payment] Missing required params", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MissingRequiredParam"]; cy.createConfirmPaymentTest( paymentIntentBody, data, "three_ds", "automatic", globalState ); }); }); context("[Payment] Confirm w/o PMD", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create payment intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( paymentIntentBody, data, "no_three_ds", "automatic", globalState ); }); it("Confirm payment intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentErrored"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); }); context("[Payment] Capture greater amount", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Capture call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["CaptureGreaterAmount"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Capture successful payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Capture call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["CaptureCapturedAmount"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Confirm successful payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ConfirmSuccessfulPayment"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Void successful payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Void call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Void"]; const commonData = getConnectorDetails(globalState.get("commons"))[ "card_pm" ]["Void"]; const newData = { ...data, Response: utils.getConnectorFlowDetails( data, commonData, "ResponseCustom" ), }; cy.voidCallTest(fixtures.voidBody, newData, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] 3DS with greater capture", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Capture call", () => { const data = getConnectorDetails(globalState.get("commons"))["card_pm"][ "CaptureGreaterAmount" ]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Refund exceeds captured Amount", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Refund call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["RefundGreaterAmount"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Refund unsuccessful payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent and confirm", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( paymentCreateConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Refund call", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["RefundGreaterAmount"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] Recurring mandate with greater mandate amount", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateSingleUseNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 60000, true, "manual", globalState ); }); }); context("Card-NoThreeDS fail payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSFailPayment"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Duplicate Payment ID", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails let createConfirmBody; beforeEach(function () { createConfirmBody = Cypress._.cloneDeep( fixtures.createConfirmPaymentBody ); if (!shouldContinue) { this.skip(); } }); it("Create new payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( createConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Create a payment with a duplicate payment ID", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["DuplicatePaymentID"]; data.Request.payment_id = globalState.get("paymentID"); cy.createConfirmPaymentTest( createConfirmBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Duplicate Refund ID", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create new payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Create new refund", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Sync refund", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Create a refund with a duplicate refund ID", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["DuplicateRefundID"]; data.Request.refund_id = globalState.get("refundId"); cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Duplicate Customer ID", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create new customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create a customer with a duplicate customer ID", () => { const customerData = fixtures.customerCreateBody; customerData.customer_id = globalState.get("customerId"); cy.createCustomerCallTest(customerData, globalState); }); }); });
5,062
8,644
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00008-SyncPayment.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - Sync payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "No3DSAutoCapture" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "No3DSAutoCapture" ]; cy.retrievePaymentCallTest(globalState, data); }); });
390
8,645
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00007-VoidPayment.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - NoThreeDS Manual payment flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - void payment in Requires_capture state flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("void-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["VoidAfterConfirm"]; cy.voidCallTest(fixtures.voidBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context( "Card - void payment in Requires_payment_method state flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("void-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Void"]; cy.voidCallTest(fixtures.voidBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context("Card - void payment in success state flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, false, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("void-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["VoidAfterConfirm"]; cy.voidCallTest(fixtures.voidBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); });
1,104
8,646
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00006-NoThreeDSManualCapture.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - NoThreeDS Manual payment flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - NoThreeDS Manual Full Capture payment flow test", () => { context("payment Create and Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("Payment Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); }); }); context( "Card - NoThreeDS Manual Partial Capture payment flow test - Create and Confirm", () => { context("payment Create and Payment Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("payment + Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); } ); });
1,635
8,647
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00016-ThreeDSManualCapture.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - ThreeDS Manual payment flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - ThreeDS Manual Full Capture payment flow test", () => { context("payment Create and Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("Payment Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.createConfirmPaymentBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); }); }); context( "Card - ThreeDS Manual Partial Capture payment flow test - Create and Confirm", () => { context("payment Create and Payment Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); context("payment + Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.createConfirmPaymentBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); }); } ); });
1,770
8,648
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00021-UPI.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("UPI Payments - Hyperswitch", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails context("[Payment] [UPI - UPI Collect] Create & Confirm + Refund", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Merchant payment methods", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["UpiCollect"]; cy.confirmUpiCall(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle UPI Redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleUpiRedirection( globalState, payment_method_type, expected_redirection ); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["UpiCollect"]; cy.retrievePaymentCallTest(globalState, data); }); it("Refund payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); // Skipping UPI Intent intentionally as connector is throwing 5xx during redirection context.skip("[Payment] [UPI - UPI Intent] Create & Confirm", () => { shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create payment intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Merchant payment methods", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["UpiIntent"]; cy.confirmUpiCall(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle UPI Redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleUpiRedirection( globalState, payment_method_type, expected_redirection ); }); it("Retrieve payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "upi_pm" ]["UpiIntent"]; cy.retrievePaymentCallTest(globalState, data); }); }); }); // TODO: This test is incomplete. Above has to be replicated here with changes to support SCL describe.skip("UPI Payments -- Hyperswitch Stripe Compatibility Layer", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); });
1,082
8,649
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00000-CoreFlows.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import { payment_methods_enabled } from "../../configs/Payment/Commons"; let globalState; describe("Core flows", () => { context("Merchant core flows", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant create call", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("merchant retrieve call", () => { cy.merchantRetrieveCall(globalState); }); it("merchant list call", () => { cy.merchantListCall(globalState); }); it("merchant update call", () => { cy.merchantUpdateCall(fixtures.merchantUpdateBody, globalState); }); }); context("API key core flows", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("API key create call", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("API key update call", () => { cy.apiKeyUpdateCall(fixtures.apiKeyUpdateBody, globalState); }); it("API key retrieve call", () => { cy.apiKeyRetrieveCall(globalState); }); it("API key list call", () => { cy.apiKeyListCall(globalState); }); }); context("Customer core flows", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Customer create call", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Customer list call", () => { cy.customerListCall(globalState); }); it("Customer retrieve call", () => { cy.customerRetrieveCall(globalState); }); it("Customer update call", () => { cy.customerUpdateCall(fixtures.customerUpdateBody, globalState); }); it("Ephemeral key generate call", () => { cy.ephemeralGenerateCall(globalState); }); }); context("Merchant Connector Account core flows", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Create Multiple Merchant Connector Accounts", () => { it("1st Connector create call", () => { // `globalState` can only be accessed in the `it` block const connector_id = globalState.data.connectorId; cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState, connector_id, "first_" + connector_id ); }); it("2nd Connector create call", () => { // `globalState` can only be accessed in the `it` block const connector_id = globalState.data.connectorId; cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState, connector_id, "second_" + connector_id ); }); }); it("Connector create call", () => { cy.createConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState ); }); it("Connector retrieve call", () => { cy.connectorRetrieveCall(globalState); }); it("Connector update call", () => { cy.connectorUpdateCall( "payment_processor", fixtures.updateConnectorBody, globalState ); }); it("List connectors by MID", () => { cy.connectorListByMid(globalState); }); }); context("Delete calls", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Customer delete call", () => { cy.customerDeleteCall(globalState); }); it("API key delete call", () => { cy.apiKeyDeleteCall(globalState); }); it("Connector delete call", () => { cy.connectorDeleteCall(globalState); }); it("Merchant delete call", () => { cy.merchantDeleteCall(globalState); }); }); context("List Connector Feature Matrix", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("List connector feature matrix call", () => { cy.ListConnectorsFeatureMatrixCall(globalState); }); }); });
1,214
8,650
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00005-ThreeDSAutoCapture.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - ThreeDS payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "3DSAutoCapture" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); });
373
8,651
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - Mandates using Payment Method Id flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create and Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create No 3DS Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Card - NoThreeDS Create and Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create No 3DS Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Card - NoThreeDS Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Card - NoThreeDS Create + Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT 1", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT 2", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "manual", globalState ); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context("Card - MIT without billing address", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create No 3DS Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandateNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITWithoutBillingAddress"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); }); context( "Card - ThreeDS Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandate3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.citConfirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandate3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - ThreeDS Create + Confirm Manual CIT and MIT payment flow", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentMethodIdMandate3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.citConfirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); });
3,441
8,652
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - SingleUse Mandates flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create + Confirm Automatic CIT and Single use MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthMandate"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 0, true, "automatic", "setup_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthMandate"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Card - NoThreeDS Create + Confirm Automatic CIT and Multi use MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthMandate"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 0, true, "automatic", "setup_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthMandate"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context("Card - Zero Auth Payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create No 3DS Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthPaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthConfirmPayment"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Retrieve Payment Call Test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthConfirmPayment"]; cy.retrievePaymentCallTest(globalState, data); }); it("Retrieve CustomerPM Call Test", () => { cy.listCustomerPMCallTest(globalState); }); it("Create Recurring Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Recurring Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.retrievePaymentCallTest(globalState, data); }); }); });
1,503
8,653
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00013-ListAndRevokeMandate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - List and revoke Mandates flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateSingleUseNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("list-mandate-call-test", () => { cy.listMandateCallTest(globalState); }); it("revoke-mandate-call-test", () => { cy.revokeMandateCallTest(globalState); }); it("revoke-revoked-mandate-call-test", () => { cy.revokeMandateCallTest(globalState); }); } ); context("Card - Zero auth CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["ZeroAuthMandate"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 0, true, "automatic", "setup_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list-mandate-call-test", () => { cy.listMandateCallTest(globalState); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("list-mandate-call-test", () => { cy.listMandateCallTest(globalState); }); it("revoke-mandate-call-test", () => { cy.revokeMandateCallTest(globalState); }); }); });
792
8,654
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00017-BankTransfers.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Bank Transfers", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Bank transfer - Pix forward flow", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank transfer", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["Pix"]; cy.confirmBankTransferCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle bank transfer redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankTransferRedirection( globalState, payment_method_type, expected_redirection ); }); }); });
417
8,655
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00024-ConnectorAgnosticNTID.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import { payment_methods_enabled } from "../../configs/Payment/Commons"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; let connector; /* Flow: - Create Business Profile with connector agnostic feature disabled - Create Merchant Connector Account and Customer - Make a Payment - List Payment Method for Customer using Client Secret (will get PMID) - Create Business Profile with connector agnostic feature disabled - Create Merchant Connector Account - Create Payment Intent - List Payment Method for Customer -- Empty list; i.e., no payment method should be listed - Confirm Payment with PMID from previous step (should fail as Connector Mandate ID is not present in the newly created Profile) - Create Business Profile with connector agnostic feature enabled - Create Merchant Connector Account and Customer - Make a Payment - List Payment Method for Customer using Client Secret (will get PMID) - Create Business Profile with connector agnostic feature disabled - Create Merchant Connector Account - Create Payment Intent - List Payment Method for Customer -- Empty list; i.e., no payment method should be listed - Confirm Payment with PMID from previous step (should fail as Connector Mandate ID is not present in the newly created Profile) - Create Business Profile with connector agnostic feature disabled - Create Merchant Connector Account and Customer - Make a Payment - List Payment Method for Customer using Client Secret (will get PMID) - Create Business Profile with connector agnostic feature enabled - Create Merchant Connector Account - Create Payment Intent - List Payment Method for Customer using Client Secret (will get PMID which is same as the one from previous step along with Payment Token) - Confirm Payment with PMID from previous step (should pass as NTID is present in the DB) - Create Business Profile with connector agnostic feature enabled - Create Merchant Connector Account and Customer - Make a Payment - List Payment Method for Customer using Client Secret (will get PMID) - Create Business Profile with connector agnostic feature enabled - Create Merchant Connector Account - Create Payment Intent - List Payment Method for Customer using Client Secret (will get PMID which is same as the one from previous step along with Payment Token) - Confirm Payment with PMID from previous step (should pass as NTID is present in the DB) */ describe("Connector Agnostic Tests", () => { before(function () { // Changed to regular function instead of arrow function let skip = false; cy.task("getGlobalState") .then((state) => { globalState = new State(state); connector = globalState.get("connectorId"); // Skip running test against a connector that is added in the exclude list if ( utils.shouldExcludeConnector( connector, utils.CONNECTOR_LISTS.EXCLUDE.CONNECTOR_AGNOSTIC_NTID ) ) { skip = true; } }) .then(() => { if (skip) { this.skip(); } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Connector Agnostic Disabled for both Profile 1 and Profile 2", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer using Client Secret", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (PMID)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; const commonData = getConnectorDetails(globalState.get("commons"))[ "card_pm" ]["MITAutoCapture"]; const newData = { ...data, Response: utils.getConnectorFlowDetails( data, commonData, "ResponseCustom" ), }; cy.mitUsingPMId( fixtures.pmIdConfirmBody, newData, 7000, true, "automatic", globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (Token)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; const commonData = getConnectorDetails(globalState.get("commons"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; const newData = { ...data, Response: utils.getConnectorFlowDetails( data, commonData, "ResponseCustom" ), }; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, newData, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Connector Agnostic Enabled for Profile 1 and Disabled for Profile 2", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Enable Connector Agnostic for Business Profile", () => { utils.updateBusinessProfile( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer using Client Secret", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (PMID)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; const commonData = getConnectorDetails(globalState.get("commons"))[ "card_pm" ]["MITAutoCapture"]; const newData = { ...data, Response: utils.getConnectorFlowDetails( data, commonData, "ResponseCustom" ), }; cy.mitUsingPMId( fixtures.pmIdConfirmBody, newData, 7000, true, "automatic", globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (Token)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; const commonData = getConnectorDetails(globalState.get("commons"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; const newData = { ...data, Response: utils.getConnectorFlowDetails( data, commonData, "ResponseCustom" ), }; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, newData, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Connector Agnostic Disabled for Profile 1 and Enabled for Profile 2", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer using Client Secret", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Enable Connector Agnostic for Business Profile", () => { utils.updateBusinessProfile( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (PMID)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 7000, true, "automatic", globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (Token)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context("Connector Agnostic Enabled for Profile 1 and Profile 2", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Enable Connector Agnostic for Business Profile", () => { utils.updateBusinessProfile( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm Payment", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer using Client Secret", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled ); }); it("Enable Connector Agnostic for Business Profile", () => { utils.updateBusinessProfile( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (PMID)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingPMId( fixtures.pmIdConfirmBody, data, 7000, true, "automatic", globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List Payment Method for Customer", () => { cy.listCustomerPMByClientSecret(globalState); }); it("Confirm No 3DS MIT (Token)", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); });
4,554
8,656
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00014-SaveCardFlow.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; let saveCardBody; describe("Card - SaveCard payment flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Save card for NoThreeDS automatic capture payment- Create+Confirm [on_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) { shouldContinue = utils.should_continue_further(data); } }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Save card for NoThreeDS manual full capture payment- Create+Confirm [on_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCapture"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Save card for NoThreeDS manual partial capture payment- Create + Confirm [on_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCapture"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Save card for NoThreeDS automatic capture payment [off_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Save card for NoThreeDS manual capture payment- Create+Confirm [off_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCaptureOffSession"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCaptureOffSession"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmManualCaptureOffSession"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmManualCaptureOffSession"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); } ); context( "Save card for NoThreeDS automatic capture payment - create and confirm [off_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.retrievePaymentCallTest(globalState, data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSession"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Use billing address from payment method during subsequent payment[off_session]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-customerPM-call-test", () => { cy.listCustomerPMCallTest(globalState); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test-without-billing", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardConfirmAutoCaptureOffSessionWithoutBilling"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); });
4,113
8,657
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00025-SessionCall.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Customer Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); const shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("session-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "SessionToken" ]; cy.sessionTokenCall(fixtures.sessionTokenBody, data, globalState); }); });
315
8,658
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00020-MandatesUsingNTIDProxy.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; let connector; describe("Card - Mandates using Network Transaction Id flow test", () => { before(function () { // Changed to regular function instead of arrow function let skip = false; cy.task("getGlobalState") .then((state) => { globalState = new State(state); connector = globalState.get("connectorId"); // Skip the test if the connector is not in the inclusion list // This is done because only cybersource is known to support at present if ( utils.shouldIncludeConnector( connector, utils.CONNECTOR_LISTS.INCLUDE.MANDATES_USING_NTID_PROXY ) ) { skip = true; } }) .then(() => { if (skip) { this.skip(); } }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create and Confirm Automatic MIT payment flow test", () => { it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - NoThreeDS Create and Confirm Manual MIT payment flow test", () => { it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "manual", globalState ); }); } ); context( "Card - NoThreeDS Create and Confirm Automatic multiple MITs payment flow test", () => { it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - NoThreeDS Create and Confirm Manual multiple MITs payment flow test", () => { let shouldContinue = true; it("Confirm No 3DS MIT 1", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "manual", globalState ); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT 2", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "manual", globalState ); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Card - ThreeDS Create and Confirm Automatic multiple MITs payment flow test", () => { it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - ThreeDS Create and Confirm Manual multiple MITs payment flow", () => { it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitUsingNTID( fixtures.ntidConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); });
1,268
8,659
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00010-SyncRefund.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - Sync Refund flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "No3DSAutoCapture" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "No3DSAutoCapture" ]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "Refund" ]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][ "SyncRefund" ]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); });
532
8,660
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00001-AccountCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; let globalState; describe("Account Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); });
155
8,661
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - MultiUse Mandates flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Card - NoThreeDS Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateMultiUseNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); context( "Card - NoThreeDS Create + Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateMultiUseNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT 1", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT 2", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITManualCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "manual", globalState ); }); it("mit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Card - ThreeDS Create + Confirm Manual CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateMultiUseNo3DSManualCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "manual", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("cit-capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); } ); });
1,381
8,662
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00028-DynamicFields.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; import { cardCreditEnabled } from "../../configs/PaymentMethodList/Commons"; let globalState; describe("Dynamic Fields Verification", () => { context("Verify the Dynamic fields for card", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Verify the Dynamic fields - Payment without billing address", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Business Profile", () => { cy.createBusinessProfileTest( fixtures.businessProfile.bpCreate, globalState ); }); it("connector-create-call-test", () => { cy.createConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentWithoutBilling"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Payment Method List", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "pm_list" ]["PmListResponse"]["pmListDynamicFieldWithoutBilling"]; cy.paymentMethodListTestWithRequiredFields(data, globalState); }); } ); context("Verify the Dynamic fields - Payment with billing address", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentWithBilling"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Payment Method List", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "pm_list" ]["PmListResponse"]["pmListDynamicFieldWithBilling"]; cy.paymentMethodListTestWithRequiredFields(data, globalState); }); }); context( "Verify the Dynamic fields - Payment with billing First and Last name", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentWithFullName"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Payment Method List", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "pm_list" ]["PmListResponse"]["pmListDynamicFieldWithNames"]; cy.paymentMethodListTestWithRequiredFields(data, globalState); }); } ); context("Verify the Dynamic fields - Payment with billing Email", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentWithBillingEmail"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Payment Method List", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "pm_list" ]["PmListResponse"]["pmListDynamicFieldWithEmail"]; cy.paymentMethodListTestWithRequiredFields(data, globalState); }); }); }); }); 1;
1,004
8,663
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00029-IncrementalAuth.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let connector; let globalState; describe.skip("[Payment] Incremental Auth", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); connector = globalState.get("connectorId"); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("[Payment] Incremental Pre-Auth", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue || connector !== "cybersource") { this.skip(); } }); it("[Payment] Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; const newData = { ...data, Request: { ...data.Request, request_incremental_authorization: true, }, }; cy.createPaymentIntentTest( fixtures.createPaymentBody, newData, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Confirm Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Incremental Authorization", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["IncrementalAuth"]; cy.incrementalAuth(globalState, data); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Capture Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("[Payment] [Saved Card] Incremental Pre-Auth", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue || connector !== "cybersource") { this.skip(); } }); it("[Payment] List customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("[Payment] Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Confirm Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSManualCaptureOffSession"]; cy.saveCardConfirmCallTest( fixtures.saveCardConfirmBody, data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Incremental Authorization", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["IncrementalAuth"]; cy.incrementalAuth(globalState, data); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("[Payment] Capture Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); });
910
8,664
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00009-RefundPayment.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Card - Refund flow - No 3DS", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - Full Refund flow test for No-3DS", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - Partial Refund flow test for No-3DS", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context( "Fully Refund Card-NoThreeDS payment flow test Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context( "Partially Refund Card-NoThreeDS payment flow test Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context("Card - Full Refund for fully captured No-3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - Partial Refund for fully captured No-3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list-refund-call-test", () => { cy.listRefundCallTest(fixtures.listRefundCall, globalState); }); }); context("Card - Full Refund for partially captured No-3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - partial Refund for partially captured No-3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("confirm-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["No3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context( "Card - Full Refund for Create + Confirm Automatic CIT and MIT payment flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Confirm No 3DS CIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MandateMultiUseNo3DSAutoCapture"]; cy.citForMandatesCallTest( fixtures.citConfirmBody, data, 6000, true, "automatic", "new_mandate", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("Confirm No 3DS MIT", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["MITAutoCapture"]; cy.mitForMandatesCallTest( fixtures.mitConfirmBody, data, 6000, true, "automatic", globalState ); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); }); describe("Card - Refund flow - 3DS", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Card - Full Refund flow test for 3DS", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - Partial Refund flow test for 3DS", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Fully Refund Card-ThreeDS payment flow test Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Refund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context( "Partially Refund Card-ThreeDS payment flow test Create+Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSAutoCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); } ); context("Card - Full Refund for fully captured 3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - Partial Refund for fully captured 3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Capture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - Full Refund for partially captured 3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; cy.refundCallTest(fixtures.refundBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("Card - partial Refund for partially captured 3DS payment", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "manual", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm 3DS", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expected_redirection); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["3DSManualCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("capture-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.captureCallTest(fixtures.captureBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PartialCapture"]; cy.retrievePaymentCallTest(globalState, data); }); it("refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["manualPaymentPartialRefund"]; const newData = { ...data, Request: { amount: data.Request.amount / 2 }, }; cy.refundCallTest(fixtures.refundBody, newData, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("sync-refund-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SyncRefund"]; cy.syncRefundCallTest(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); });
9,154
8,665
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00018-BankRedirect.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Bank Redirect tests", () => { afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Blik Create and Confirm flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["BlikPaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["Blik"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); }); context("EPS Create and Confirm flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["Eps"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); context("iDEAL Create and Confirm flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["Ideal"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); context("Sofort Create and Confirm flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["Sofort"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); context("Przelewy24 Create and Confirm flow test", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "bank_redirect_pm" ]["Przelewy24"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle bank redirect redirection", () => { const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); });
1,826
8,666
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00023-PaymentMethods.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; let saveCardBody; describe("Payment Methods Tests", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Create payment method for customer", () => { it("Create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Method", () => { const data = getConnectorDetails("commons")["card_pm"]["PaymentMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); }); context("Set default payment method", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); it("Create Payment Method", () => { const data = getConnectorDetails("commons")["card_pm"]["PaymentMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); it("Set default payment method", () => { cy.setDefaultPaymentMethodTest(globalState); }); }); context("Delete payment method for customer", () => { it("Create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Create Payment Method", () => { const data = getConnectorDetails("commons")["card_pm"]["PaymentMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); it("Delete Payment Method for a customer", () => { cy.deletePaymentMethodTest(globalState); }); }); context("'Last Used' off-session token payments", () => { let shouldContinue = true; beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); context("Create No 3DS off session save card payment", () => { it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCaptureOffSession"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); }); context("Create 3DS off session save card payment", () => { it("create+confirm-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUse3DSAutoCaptureOffSession"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expectedRedirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expectedRedirection); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); }); context("Create 3DS off session save card payment with token", () => { beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; const newData = { ...data, Response: { ...data.Response, body: { ...data.Response.body, status: "requires_customer_action", }, }, }; cy.saveCardConfirmCallTest(saveCardBody, newData, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("Handle redirection", () => { const expectedRedirection = fixtures.confirmBody["return_url"]; cy.handleRedirection(globalState, expectedRedirection); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState, 1 /* order */); }); }); context("Create No 3DS off session save card payment with token", () => { beforeEach(function () { saveCardBody = Cypress._.cloneDeep(fixtures.saveCardConfirmBody); if (!shouldContinue) { this.skip(); } }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("create-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("confirm-save-card-payment-call-test", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SaveCardUseNo3DSAutoCapture"]; cy.saveCardConfirmCallTest(saveCardBody, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("List PM for customer", () => { cy.listCustomerPMCallTest(globalState); }); }); }); });
1,690
8,667
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00027-BusinessProfileConfigs.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import { payment_methods_enabled } from "../../configs/Payment/Commons"; import getConnectorDetails, * as utils from "../../configs/Payment/Utils"; let globalState; describe("Config Tests", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context( "Update collect_billing_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Business Profile", () => { cy.createBusinessProfileTest( fixtures.businessProfile.bpCreate, globalState ); }); it("connector-create-call-test", () => { cy.createConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Update collect_billing_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled true, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update collect_shipping_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Update collect_shipping_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update always_collect_billing_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Update always_collect_billing_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector true, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update always_collect_shipping_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Update always_collect_shipping_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector true, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update always_collect_shipping_details_from_wallet_connector & collect_shipping_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Update both always & collect_shipping_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector true, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector true, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update always_collect_billing_details_from_wallet_connector & to collect_billing_details_from_wallet_connector to true and verifying in payment method list, this config should be true", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Update both always & collect_billing_details_from_wallet_connector to true", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled true, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector true, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); context( "Update all config(Collect address config) to false and verifying in payment method list, both config should be false", () => { let shouldContinue = true; beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("Create Business Profile", () => { cy.createBusinessProfileTest( fixtures.businessProfile.bpCreate, globalState ); }); it("connector-create-call-test", () => { cy.createConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState ); }); it("Create Customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Update all config to false", () => { cy.UpdateBusinessProfileTest( fixtures.businessProfile.bpUpdate, true, // is_connector_agnostic_enabled false, // collect_billing_address_from_wallet_connector false, // collect_shipping_address_from_wallet_connector false, // always_collect_billing_address_from_wallet_connector false, // always_collect_shipping_address_from_wallet_connector globalState ); }); it("Create Payment Intent", () => { const data = getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["PaymentIntentOffSession"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); } ); });
2,216
8,668
hyperswitch
cypress-tests/cypress/e2e/spec/Payment/00003-ConnectorCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import { payment_methods_enabled } from "../../configs/Payment/Commons"; import * as utils from "../../configs/Payment/Utils"; let globalState; describe("Connector Account Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Create merchant connector account", () => { cy.createConnectorCallTest( "payment_processor", fixtures.createConnectorBody, payment_methods_enabled, globalState ); }); // subsequent profile and mca ids should check for the existence of multiple connectors context( "Create another business profile and merchant connector account if MULTIPLE_CONNECTORS flag is true", () => { it("Create business profile", () => { utils.createBusinessProfile( fixtures.businessProfile.bpCreate, globalState, { nextConnector: true } ); }); it("Create merchant connector account", () => { utils.createMerchantConnectorAccount( "payment_processor", fixtures.createConnectorBody, globalState, payment_methods_enabled, { nextConnector: true } ); }); } ); });
296
8,669
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00000-AccountCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; let globalState; describe("Account Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); });
155
8,670
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00006-PayoutUsingPayoutMethodId.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Payout/Utils"; let globalState; let payoutBody; describe("[Payout] Saved Bank transfer", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); context( "[Payout] [Bank Transfer] Onboard Customer Prior to Transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach("reset payoutBody", () => { payoutBody = Cypress._.cloneDeep(fixtures.createPayoutBody); }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create payment method", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["SavePayoutMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("[Payout] [Bank transfer] [SEPA] Fulfill using Token", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Token"]; cy.createConfirmWithTokenPayoutTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); } ); context( "[Payout] [Bank Transfer] Save payment method after successful transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Fulfill"]; cy.createConfirmPayoutTest(payoutBody, data, true, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("[Payout] [Bank transfer] [SEPA] Fulfill using payout_method_id", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Token"]; cy.createConfirmWithPayoutMethodIdTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); } ); });
841
8,671
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00001-CustomerCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; let globalState; describe("Customer Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); });
122
8,672
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00002-ConnectorCreate.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; let globalState; describe("Connector Account Create flow test", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("connector-create-call-test", () => { cy.createPayoutConnectorCallTest( "payout_processor", fixtures.createConnectorBody, globalState ); }); });
134
8,673
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00004-BankTransfer.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Payout/Utils"; let globalState; // TODO: Add test for Bank Transfer - ACH describe.skip("[Payout] [Bank Transfer - ACH]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); }); // TODO: Add test for Bank Transfer - BACS describe.skip("[Payout] [Bank Transfer - BACS]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); }); describe("[Payout] [Bank Transfer - SEPA]", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); context("[Payout] [Bank transfer - SEPA] Auto Fulfill", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Fulfill"]; cy.createConfirmPayoutTest( fixtures.createPayoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); }); context("[Payout] [Bank transfer - SEPA] Manual Fulfill", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("confirm-payout-call-with-manual-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Confirm"]; cy.createConfirmPayoutTest( fixtures.createPayoutBody, data, true, false, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("fulfill-payout-call-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Fulfill"]; cy.fulfillPayoutCallTest({}, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); }); });
1,008
8,674
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00003-CardTest.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Payout/Utils"; let globalState; describe("[Payout] Cards", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); context("Payout Card with Auto Fulfill", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Fulfill"]; cy.createConfirmPayoutTest( fixtures.createPayoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); }); context("Payout Card with Manual Fulfill - Create Confirm", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("confirm-payout-call-with-manual-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Confirm"]; cy.createConfirmPayoutTest( fixtures.createPayoutBody, data, true, false, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("fulfill-payout-call-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Fulfill"]; cy.fulfillPayoutCallTest({}, data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); }); });
609
8,675
hyperswitch
cypress-tests/cypress/e2e/spec/Payout/00005-SavePayout.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Payout/Utils"; let globalState; let payoutBody; describe("[Payout] Saved Card", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); context("[Payout] [Card] Onboard customer prior to transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails // This is needed to get customer payment methods beforeEach("seed global state", () => { payoutBody = Cypress._.cloneDeep(fixtures.createPayoutBody); }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create payment method", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["SavePayoutMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Token"]; cy.createConfirmWithTokenPayoutTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); }); context( "[Payout] [Card] Save payment method after successful transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Fulfill"]; cy.createConfirmPayoutTest(payoutBody, data, true, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "card_pm" ]["Token"]; cy.createConfirmWithTokenPayoutTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); } ); }); describe("[Payout] Saved Bank transfer", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); // Check if the connector supports card payouts (based on the connector configuration in creds) if (!globalState.get("payoutsExecution")) { shouldContinue = false; } }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); beforeEach(function () { if (!shouldContinue) { this.skip(); } }); context( "[Payout] [Bank Transfer] Onboard Customer Prior to Transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach("reset payoutBody", () => { payoutBody = Cypress._.cloneDeep(fixtures.createPayoutBody); }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("create payment method", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["SavePayoutMethod"]; cy.createPaymentMethodTest(globalState, data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("[Payout] [Bank transfer] [SEPA_BANK_TRANSFER] Fulfill using Token", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Token"]; cy.createConfirmWithTokenPayoutTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); } ); context( "[Payout] [Bank Transfer] Save payment method after successful transaction", () => { let shouldContinue = true; // variable that will be used to skip tests if a previous test fails beforeEach(function () { if (!shouldContinue) { this.skip(); } }); it("create customer", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("confirm-payout-call-with-auto-fulfill-test", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Fulfill"]; cy.createConfirmPayoutTest(payoutBody, data, true, true, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("list customer payment methods", () => { cy.listCustomerPMCallTest(globalState); }); it("[Payout] [Bank transfer] [SEPA_BANK_TRANSFER] Fulfill using Token", () => { const data = utils.getConnectorDetails(globalState.get("connectorId"))[ "bank_transfer_pm" ]["sepa_bank_transfer"]["Token"]; cy.createConfirmWithTokenPayoutTest( payoutBody, data, true, true, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payout-call-test", () => { cy.retrievePayoutCallTest(globalState); }); } ); });
1,610
8,676
hyperswitch
cypress-tests/cypress/e2e/spec/PaymentMethodList/00000-PaymentMethodListTests.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import { bankRedirectIdealAndCreditEnabled, bankRedirectIdealEnabled, cardCreditEnabled, cardCreditEnabledInEur, cardCreditEnabledInUs, cardCreditEnabledInUsd, createPaymentBodyWithCurrency, createPaymentBodyWithCurrencyCountry, } from "../../configs/PaymentMethodList/Commons"; import getConnectorDetails from "../../configs/PaymentMethodList/Utils"; let globalState; describe("Payment Method list using Constraint Graph flow tests", () => { context( ` MCA1 -> Stripe configured with ideal = { country = "NL", currency = "EUR" }\n MCA2 -> Cybersource configured with credit = { currency = "USD" }\n Payment is done with currency as EUR and no billing address\n The resultant Payment Method list should only have ideal with stripe\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); // stripe connector create with ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as EUR and no billing address it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyEUR, RequestCurrencyEUR: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrency("EUR"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should only have ideal with stripe it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithStripeForIdeal" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with ideal = { country = "NL", currency = "EUR" }\n MCA2 -> Cybersource configured with credit = { currency = "USD" }\n Payment is done with currency as INR and no billing address\n The resultant Payment Method list shouldn't have any payment method\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit enabled in USD it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInUsd, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as INR and no billing address it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyINR, RequestCurrencyINR: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrency("INR"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should only have ideal with stripe it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListNull" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with credit = { country = "US" }\n MCA2 -> Cybersource configured with credit = { country = "US" }\n Payment is done with country as US and currency as USD\n The resultant Payment Method list should have both Stripe and Cybersource\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with credit enabled for US it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInUs, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit enabled in US it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInUs, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as USD and billing address as US it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyUSD, RequestCurrencyUSD: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrency("USD"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should only have credit with Stripe and Cybersource it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithCreditTwoConnector" ]; cy.paymentMethodListTestTwoConnectorsForOnePaymentMethodCredit( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with ideal = { country = "NL", currency = "EUR" }\n MCA2 -> Cybersource configured with ideal = { country = "NL", currency = "EUR" }\n Payment is done with country as US and currency as EUR\n The resultant Payment Method list shouldn't have anything\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealEnabled, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as EUR and billing address as US it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyEUR, RequestCurrencyEUR: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrencyCountry("EUR", "US", "US"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which shouldn't have anything it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListNull" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with card credit no configs present\n MCA2 -> Cybersource configured with card credit = { currency = "USD" }\n and ideal (default config present as = { country = "NL", currency = "EUR" })\n Payment is done with country as IN and currency as USD\n The resultant Payment Method list should have\n Stripe and Cybersource both for credit and none for ideal\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with card credit enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit and ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealAndCreditEnabled, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as USD and billing address as IN it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyUSD, RequestCurrencyUSD: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrencyCountry("USD", "IN", "IN"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should have credit with stripe and cybersource and no ideal it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithCreditTwoConnector" ]; cy.paymentMethodListTestTwoConnectorsForOnePaymentMethodCredit( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with card credit\n MCA2 -> Cybersource configured with card credit = { currency = "USD" }\n Payment is done with currency as USD and no billing address\n The resultant Payment Method list should have both\n Stripe and cybersource for credit\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with card credit enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as USD and billing address as IN it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyUSD, RequestCurrencyUSD: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrency("USD"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should have credit with stripe and cybersource and no ideal it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithCreditTwoConnector" ]; cy.paymentMethodListTestTwoConnectorsForOnePaymentMethodCredit( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with ideal = { country = "NL", currency = "EUR" }\n MCA2 -> Cybersource configured with credit = { currency = "USD" }\n Payment is done with currency as EUR and billing country as NL , shipping country as US\n The resultant Payment Method list should only have ideal with stripe\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); // stripe connector create with ideal enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, bankRedirectIdealEnabled, globalState, "stripe", "stripe_US_default" ); }); // cybersource connector create with card credit enabled it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabled, globalState, "cybersource", "cybersource_US_default" ); }); // creating payment with currency as EUR and no billing address it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyEUR, RequestCurrencyEUR: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrencyCountry("EUR", "NL", "US"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list which should only have ideal with stripe it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithStripeForIdeal" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with credit = { currency = "USD" }\n MCA2 -> Novalnet configured with credit = { currency = "EUR" }\n Payment is done with currency as as USD and no billing address\n The resultant Payment Method list should only have credit with stripe\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); // stripe connector create with card credit enabled in USD it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInUsd, globalState, "stripe", "stripe_US_default" ); }); // novalnet connector create with card credit enabled in EUR it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInEur, globalState, "novalnet", "novalnet_DE_default" ); }); // creating payment with currency as USD and no billing email // billing.email is mandatory for novalnet it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyUSD, RequestCurrencyUSD: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrency("USD"), newData, "no_three_ds", "automatic", globalState ); }); // payment method list should only have credit with stripe it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithCreditOneConnector" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); context( ` MCA1 -> Stripe configured with credit = { currency = "USD" }\n MCA2 -> Novalnet configured with credit = { currency = "EUR" }\n Payment is done with currency as as EUR and billing address for 3ds credit card\n The resultant Payment Method list should only have credit with novalnet\n `, () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant-create-call-test", () => { cy.merchantCreateCallTest(fixtures.merchantCreateBody, globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); // stripe connector create with card credit enabled in USD it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInUsd, globalState, "stripe", "stripe_US_default" ); }); // novalnet connector create with card credit enabled in EUR it("connector-create-call-test", () => { cy.createNamedConnectorCallTest( "payment_processor", fixtures.createConnectorBody, cardCreditEnabledInEur, globalState, "novalnet", "novalnet_DE_default" ); }); // creating payment with currency as EUR and billing email // billing.email is mandatory for novalnet it("create-payment-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PaymentIntent"]; const newData = { ...data, Request: data.RequestCurrencyEUR, RequestCurrencyEUR: undefined, // we do not need this anymore }; cy.createPaymentIntentTest( createPaymentBodyWithCurrencyCountry("EUR", "IN", "IN"), newData, "three_ds", "automatic", globalState ); }); // payment method list should only have credit with novalnet it("payment-method-list-call-test", () => { const data = getConnectorDetails("connector")["pm_list"]["PmListResponse"][ "PmListWithCreditOneConnector" ]; cy.paymentMethodListTestLessThanEqualToOnePaymentMethod( data, globalState ); }); } ); });
5,176
8,677
hyperswitch
cypress-tests/cypress/e2e/spec/Routing/00000-PriorityRouting.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Routing/Utils"; let globalState; describe("Priority Based Routing Test", () => { let shouldContinue = true; beforeEach(() => { cy.session("login", () => { // Make sure we have credentials if (!globalState.get("email") || !globalState.get("password")) { throw new Error("Missing login credentials in global state"); } cy.userLogin(globalState) .then(() => cy.terminate2Fa(globalState)) .then(() => cy.userInfo(globalState)) .then(() => { // Verify we have all necessary tokens and IDs const requiredKeys = [ "userInfoToken", "merchantId", "organizationId", "profileId", ]; requiredKeys.forEach((key) => { if (!globalState.get(key)) { throw new Error(`Missing required key after login: ${key}`); } }); }); }); }); context("Get merchant info", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant retrieve call", () => { cy.merchantRetrieveCall(globalState); }); }); context("Routing with Stripe as top priority", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("list-mca-by-mid", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; const routing_data = [ { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "priority", routing_data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.retrieveRoutingConfig(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.activateRoutingConfig(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment-routing-test", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); }); context("Routing with adyen as top priority", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("list-mca-by-mid", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; const routing_data = [ { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "priority", routing_data, globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.retrieveRoutingConfig(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.activateRoutingConfig(data, globalState); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("payment-routing-test", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); if (shouldContinue) shouldContinue = utils.should_continue_further(data); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); }); });
1,327
8,678
hyperswitch
cypress-tests/cypress/e2e/spec/Routing/00001-VolumeBasedRouting.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Routing/Utils"; let globalState; describe("Volume Based Routing Test", () => { // Restore the session if it exists beforeEach(() => { cy.session("login", () => { // Make sure we have credentials if (!globalState.get("email") || !globalState.get("password")) { throw new Error("Missing login credentials in global state"); } cy.userLogin(globalState) .then(() => cy.terminate2Fa(globalState)) .then(() => cy.userInfo(globalState)) .then(() => { // Verify we have all necessary tokens and IDs const requiredKeys = [ "userInfoToken", "merchantId", "organizationId", "profileId", ]; requiredKeys.forEach((key) => { if (!globalState.get(key)) { throw new Error(`Missing required key after login: ${key}`); } }); }); }); }); context("Get merchant info", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant retrieve call", () => { cy.merchantRetrieveCall(globalState); }); }); context("Volume based routing with 100% of stripe", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("list-mca-by-mid", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; const routing_data = [ { connector: { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, split: 100, }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "volume_split", routing_data, globalState ); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.retrieveRoutingConfig(data, globalState); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.activateRoutingConfig(data, globalState); }); it("payment-routing-test", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); it("create-payment-call-test-for-eps", () => { const data = utils.getConnectorDetails("stripe")["bank_redirect_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = utils.getConnectorDetails("stripe")["bank_redirect_pm"]["eps"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); context("Volume based routing with 100% of adyen", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("list-mca-by-mid", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; const routing_data = [ { connector: { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, split: 100, }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "volume_split", routing_data, globalState ); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.retrieveRoutingConfig(data, globalState); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.activateRoutingConfig(data, globalState); }); it("payment-routing-test-for-card", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); it("create-payment-call-test-for-eps", () => { const data = utils.getConnectorDetails("adyen")["bank_redirect_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); }); it("payment_methods-call-test", () => { cy.paymentMethodsCallTest(globalState); }); it("Confirm bank redirect", () => { const data = utils.getConnectorDetails("adyen")["bank_redirect_pm"]["eps"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); });
1,672
8,679
hyperswitch
cypress-tests/cypress/e2e/spec/Routing/00003-Retries.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Routing/Utils"; let globalState; describe("Auto Retries & Step Up 3DS", () => { // Restore the session if it exists beforeEach(() => { cy.session("login", () => { // Make sure we have credentials if (!globalState.get("email") || !globalState.get("password")) { throw new Error("Missing login credentials in global state"); } cy.userLogin(globalState) .then(() => cy.terminate2Fa(globalState)) .then(() => cy.userInfo(globalState)) .then(() => { // Verify we have all necessary tokens and IDs const requiredKeys = [ "userInfoToken", "merchantId", "organizationId", "profileId", ]; requiredKeys.forEach((key) => { if (!globalState.get(key)) { throw new Error(`Missing required key after login: ${key}`); } }); }); }); }); context("Get merchant info", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("List MCA", () => { cy.ListMcaByMid(globalState); }); it("API key create call", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("Customer create call", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("Retrieve Merchant", () => { cy.merchantRetrieveCall(globalState); }); }); context("Auto Retries", () => { context("[Config: enable] Auto retries", () => { it("Enable auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `should_call_gsm_${merchantId}`, "true", "UPDATE" ); }); context("Max auto retries", () => { context("Adyen -> Stripe auto retries", () => { context("Enable routing configs", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Add routing config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; const routing_data = [ { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, { connector: "bluesnap", merchant_connector_id: globalState.get("bluesnapMcaId"), }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "priority", routing_data, globalState ); }); it("Activate routing config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.activateRoutingConfig(data, globalState); }); }); context("Max auto retries = 2", () => { const maxAutoRetries = 2; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "BluesnapConfirm" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); context("Max auto retries = 1", () => { const maxAutoRetries = 1; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "StripeConfirmSuccess" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); context("Max auto retries = 0", () => { const maxAutoRetries = 0; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "AdyenConfirmFail" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); }); context("Stripe -> Adyen auto retries", () => { context("Enable routing configs", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); afterEach("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("Add routing config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; const routing_data = [ { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, { connector: "bluesnap", merchant_connector_id: globalState.get("bluesnapMcaId"), }, ]; cy.addRoutingConfig( fixtures.routingConfigBody, data, "priority", routing_data, globalState ); }); it("Activate routing config", () => { const data = utils.getConnectorDetails("common")["priorityRouting"]; cy.activateRoutingConfig(data, globalState); }); }); context("Max auto retries = 2", () => { const maxAutoRetries = 2; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "BluesnapConfirm" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); context("Max auto retries = 1", () => { const maxAutoRetries = 1; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "AdyenConfirm" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); context("Max auto retries = 0", () => { const maxAutoRetries = 0; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); context("Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "StripeConfirmFail" ]; cy.confirmCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); }); }); context("Step up 3DS", () => { context("[Config: set] GSM", () => { it("[Config: enable] Step up GSM", () => { cy.updateGsmConfig(fixtures.gsmBody.gsm_update, globalState, true); }); it("[Config: enable] Step up for Stripe", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `step_up_enabled_${merchantId}`, '["stripe"]', "UPDATE" ); }); }); context("Make Payment", () => { const maxAutoRetries = 1; it("Update max auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `max_auto_retries_enabled_${merchantId}`, `${maxAutoRetries}`, "UPDATE" ); }); it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "StripeConfirm3DS" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest( globalState, null, true, maxAutoRetries + 1 ); }); }); }); }); context("[Config: disable] Auto retries", () => { it("[Config: disable] Auto retries", () => { const merchantId = globalState.get("merchantId"); cy.setConfigs( globalState, `should_call_gsm_${merchantId}`, "false", "UPDATE" ); }); it("[Config: disable] Step up GSM", () => { cy.updateGsmConfig(fixtures.gsmBody.gsm_update, globalState, false); }); context("Make payment", () => { context("[Failed] Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "StripeConfirmFail" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest(globalState, null, true); }); }); context("[Succeeded] Make payment", () => { it("Payment create call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "PaymentIntent" ]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Payment confirm call", () => { const data = utils.getConnectorDetails("autoretries")["card_pm"][ "StripeConfirmSuccess" ]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("Payment retrieve call", () => { cy.retrievePaymentCallTest(globalState, null, true); }); }); }); }); }); });
3,449
8,680
hyperswitch
cypress-tests/cypress/e2e/spec/Routing/00002-RuleBasedRouting.cy.js
.js
import * as fixtures from "../../../fixtures/imports"; import State from "../../../utils/State"; import * as utils from "../../configs/Routing/Utils"; let globalState; describe("Rule Based Routing Test", () => { // Restore the session if it exists beforeEach(() => { cy.session("login", () => { // Make sure we have credentials if (!globalState.get("email") || !globalState.get("password")) { throw new Error("Missing login credentials in global state"); } cy.userLogin(globalState) .then(() => cy.terminate2Fa(globalState)) .then(() => cy.userInfo(globalState)) .then(() => { // Verify we have all necessary tokens and IDs const requiredKeys = [ "userInfoToken", "merchantId", "organizationId", "profileId", ]; requiredKeys.forEach((key) => { if (!globalState.get(key)) { throw new Error(`Missing required key after login: ${key}`); } }); }); }); }); context("Get merchant info", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("merchant retrieve call", () => { cy.merchantRetrieveCall(globalState); }); }); context("Rule based routing,Card->Stripe,Bank_redirect->adyen", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("retrieve-mca", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; const routing_data = { defaultSelection: { type: "priority", data: [], }, metadata: {}, rules: [ { name: "rule_1", connectorSelection: { type: "priority", data: [ { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, ], }, statements: [ { condition: [ { lhs: "payment_method", comparison: "equal", value: { type: "enum_variant", value: "card", }, metadata: {}, }, ], }, ], }, { name: "rule_2", connectorSelection: { type: "priority", data: [ { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, ], }, statements: [ { condition: [ { lhs: "payment_method", comparison: "equal", value: { type: "enum_variant", value: "bank_redirect", }, metadata: {}, }, ], }, ], }, ], }; cy.addRoutingConfig( fixtures.routingConfigBody, data, "advanced", routing_data, globalState ); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.retrieveRoutingConfig(data, globalState); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; cy.activateRoutingConfig(data, globalState); }); it("payment-routing-test for card", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["No3DSAutoCapture"]; cy.createConfirmPaymentTest( fixtures.createConfirmPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); it("create-payment-routing-test for bank redirect", () => { const data = utils.getConnectorDetails("adyen")["bank_redirect_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "three_ds", "automatic", globalState ); }); it("Confirm bank redirect", () => { const data = utils.getConnectorDetails("adyen")["bank_redirect_pm"]["ideal"]; cy.confirmBankRedirectCallTest( fixtures.confirmBody, data, true, globalState ); }); it("Handle bank redirect redirection", () => { // return_url is a static url (https://example.com) taken from confirm-body fixture and is not updated const expected_redirection = fixtures.confirmBody["return_url"]; const payment_method_type = globalState.get("paymentMethodType"); cy.handleBankRedirectRedirection( globalState, payment_method_type, expected_redirection ); }); }); context("Rule based routing,Currency->is->USD->Stripe->else->adyen", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("retrieve-mca", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; const routing_data = { defaultSelection: { type: "priority", data: [ { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, ], }, metadata: {}, rules: [ { name: "rule_1", connectorSelection: { type: "priority", data: [ { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, ], }, statements: [ { condition: [ { lhs: "currency", comparison: "equal", value: { type: "enum_variant", value: "USD", }, metadata: {}, }, ], }, ], }, ], }; cy.addRoutingConfig( fixtures.routingConfigBody, data, "advanced", routing_data, globalState ); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.retrieveRoutingConfig(data, globalState); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; cy.activateRoutingConfig(data, globalState); }); it("create-payment-call-test-with-USD", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Confirm No 3DS", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); it("create-payment-call-test-with-EUR", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Confirm No 3DS", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); }); context( "Rule based routing,amount->isGreaterThan->100->adyen->else->stripe", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); it("retrieve-mca", () => { cy.ListMcaByMid(globalState); }); it("api-key-create-call-test", () => { cy.apiKeyCreateTest(fixtures.apiKeyCreateBody, globalState); }); it("customer-create-call-test", () => { cy.createCustomerCallTest(fixtures.customerCreateBody, globalState); }); it("add-routing-config", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; const routing_data = { defaultSelection: { type: "priority", data: [], }, metadata: {}, rules: [ { name: "rule_1", connectorSelection: { type: "priority", data: [ { connector: "stripe", merchant_connector_id: globalState.get("stripeMcaId"), }, ], }, statements: [ { condition: [ { lhs: "amount", comparison: "greater_than", value: { type: "number", value: 1000 }, metadata: {}, }, ], }, ], }, { name: "rule_2", connectorSelection: { type: "priority", data: [ { connector: "adyen", merchant_connector_id: globalState.get("adyenMcaId"), }, ], }, statements: [ { condition: [ { lhs: "amount", comparison: "less_than", value: { type: "number", value: 1000 }, metadata: {}, }, ], }, ], }, ], }; cy.addRoutingConfig( fixtures.routingConfigBody, data, "advanced", routing_data, globalState ); }); it("retrieve-routing-call-test", () => { const data = utils.getConnectorDetails("common")["volumeBasedRouting"]; cy.retrieveRoutingConfig(data, globalState); }); it("activate-routing-call-test", () => { const data = utils.getConnectorDetails("common")["ruleBasedRouting"]; cy.activateRoutingConfig(data, globalState); }); it("create-payment-call-test-with-amount-10", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Confirm No 3DS", () => { const data = utils.getConnectorDetails("stripe")["card_pm"]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); }); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); it("create-payment-call-test-with-amount-9", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["PaymentIntent"]; cy.createPaymentIntentTest( fixtures.createPaymentBody, data, "no_three_ds", "automatic", globalState ); }); it("Confirm No 3DS", () => { const data = utils.getConnectorDetails("adyen")["card_pm"]["No3DSAutoCapture"]; cy.confirmCallTest(fixtures.confirmBody, data, true, globalState); it("retrieve-payment-call-test", () => { cy.retrievePaymentCallTest(globalState, null); }); }); } ); });
2,811
8,681
hyperswitch
cypress-tests/cypress/e2e/spec/Misc/00000-HealthCheck.cy.js
.js
import State from "../../../utils/State"; let globalState; describe("In Memory Cache configs", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Health Check", () => { it("Create Configs", () => { cy.healthCheck(globalState); }); }); });
113
8,682
hyperswitch
cypress-tests/cypress/e2e/spec/Misc/00001-MemoryCacheConfigs.cy.js
.js
import State from "../../../utils/State"; let globalState; describe("In Memory Cache configs", () => { before("seed global state", () => { cy.task("getGlobalState").then((state) => { globalState = new State(state); }); }); after("flush global state", () => { cy.task("setGlobalState", globalState.data); }); context("Config flows", () => { const key = "test-key"; const value = "test value"; const newValue = "new test value"; it("Create Configs", () => { cy.setConfigs(globalState, key, value, "CREATE"); cy.setConfigs(globalState, key, value, "FETCH"); }); it("Update Configs", () => { cy.setConfigs(globalState, key, newValue, "UPDATE"); cy.setConfigs(globalState, key, newValue, "FETCH"); }); it("delete configs", () => { cy.setConfigs(globalState, key, newValue, "DELETE"); }); }); });
224
8,683
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Trustpay.js
.js
import { customerAcceptance } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "4200000000000000", card_exp_month: "10", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4200000000000067", card_exp_month: "03", card_exp_year: "2030", card_holder_name: "John Doe", card_cvc: "737", }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: getCustomExchange({ Configs: { CONNECTOR_CREDENTIAL: { specName: ["refundPayment", "syncRefund"], value: "connector_2", }, }, Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSAutoCapture": { Configs: { CONNECTOR_CREDENTIAL: { specName: ["refundPayment", "syncRefund"], value: "connector_2", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["refundPayment", "syncRefund"], value: "connector_2", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["refundPayment", "syncRefund"], value: "connector_2", }, }, Request: { amount_to_capture: 6000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be captured because it has a payment.status of requires_payment_method. The expected state is requires_capture, partially_captured_and_capturable, processing", code: "IR_14", }, }, }, }, PartialCapture: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["refundPayment", "syncRefund"], value: "connector_2", }, DELAY: { STATUS: true, TIMEOUT: 15000, }, }, Request: { amount_to_capture: 2000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be captured because it has a payment.status of requires_payment_method. The expected state is requires_capture, partially_captured_and_capturable, processing", code: "IR_14", }, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Configs: { DELAY: { STATUS: true, TIMEOUT: 15000, }, }, Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Configs: { DELAY: { STATUS: true, TIMEOUT: 15000, }, }, Request: { amount: 2000, }, Response: { status: 200, body: { reason: "FRAUD", status: "succeeded", }, }, }, SyncRefund: { Configs: { DELAY: { STATUS: true, TIMEOUT: 15000, }, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Trustpay is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Trustpay is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, }, bank_redirect_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), Ideal: { Request: { payment_method: "bank_redirect", payment_method_type: "ideal", payment_method_data: { bank_redirect: { ideal: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Giropay: { Request: { payment_method: "bank_redirect", payment_method_type: "giropay", payment_method_data: { bank_redirect: { giropay: { bank_name: "", bank_account_bic: "", bank_account_iban: "", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "failed", error_code: "1133001", error_message: "Giropay payments are not enabled in Project 4107608031", }, }, }, Sofort: { Request: { payment_method: "bank_redirect", payment_method_type: "sofort", payment_method_data: { bank_redirect: { sofort: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "failed", error_code: "1133001", }, }, }, Eps: { Request: { payment_method: "bank_redirect", payment_method_type: "eps", payment_method_data: { bank_redirect: { eps: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "AT", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Blik: { Request: { payment_method: "bank_redirect", payment_method_type: "blik", payment_method_data: { bank_redirect: { blik: { name: "John Doe", email: "example@email.com", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "PL", first_name: "john", last_name: "doe", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, };
2,899
8,684
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Iatapay.js
.js
const successfulNo3DSCardDetails = { card_number: "4111111111111111", card_exp_month: "03", card_exp_year: "30", card_holder_name: "John Doe", card_cvc: "737", }; const billingAddress = { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "IN", first_name: "john", last_name: "doe", }, }; export const connectorDetails = { bank_redirect_pm: { Ideal: { Request: { payment_method: "bank_redirect", payment_method_type: "ideal", payment_method_data: { bank_redirect: { ideal: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "john", last_name: "doe", }, }, }, Response: { status: 200, body: { status: "failed", error_code: "BAD_REQUEST", error_message: "Payment country has to be enabled on merchant", }, }, }, }, card_pm: { ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Iatapay is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Iatapay is not implemented", code: "IR_00", }, }, }, }, No3DSFailPayment: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Selected payment method through iatapay is not implemented", code: "IR_00", }, }, }, }, }, upi_pm: { PaymentIntent: { Request: { currency: "INR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, UpiCollect: { Request: { payment_method: "upi", payment_method_type: "upi_collect", payment_method_data: { upi: { upi_collect: { vpa_id: "successtest@iata", }, }, }, billing: billingAddress, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, UpiIntent: { Request: { payment_method: "upi", payment_method_type: "upi_intent", payment_method_data: { upi: { upi_intent: {}, }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, }, };
1,024
8,685
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Paybox.js
.js
const successfulNo3DSCardDetails = { card_number: "1111222233334444", card_exp_month: "05", card_exp_year: "27", card_holder_name: "joseph Doe", card_cvc: "222", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000001091", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const customerAcceptance = { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "125.0.0.1", user_agent: "amet irure esse", }, }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 6000, currency: "EUR", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 6000, currency: "EUR", }, }, }; const captureNotSupported = { type: "invalid_request", message: "Payment method type not supported", code: "IR_19", reason: "Capture Not allowed in case of Creating the Subscriber is not supported by Paybox", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentOffSession: { Request: { currency: "EUR", amount: 6000, authentication_type: "no_three_ds", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, No3DSManualCapture: { Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { // Auto capture with different currency, so we need to pass currency in here currency: "EUR", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, VoidAfterConfirm: { Request: {}, Response: { status: 501, body: { status: "cancelled", error: { type: "invalid_request", message: "Cancel/Void flow is not implemented", code: "IR_00", }, }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, MandateSingleUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { error: captureNotSupported, }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, MandateMultiUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: { Request: { currency: "EUR", amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MITManualCapture: { Request: { currency: "EUR", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "EUR", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "processing", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "processing", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 400, body: { error: captureNotSupported, }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, InvalidCardNumber: { Request: { currency: "EUR", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "123456", card_exp_month: "10", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: invalid card number length", code: "IR_06", }, }, }, }, InvalidExpiryMonth: { Request: { currency: "EUR", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "00", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid Expiry Month", code: "IR_16", }, }, }, }, InvalidExpiryYear: { Request: { currency: "EUR", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid Expiry Year", code: "IR_16", }, }, }, }, InvalidCardCvv: { Request: { currency: "EUR", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid card_cvc length", code: "IR_16", }, }, }, }, InvalidCurrency: { Request: { currency: "United", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `United`, expected one of `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`, `SLE`, `SLL`, `SOS`, `SRD`, `SSP`, `STN`, `SVC`, `SYP`, `SZL`, `THB`, `TJS`, `TMT`, `TND`, `TOP`, `TRY`, `TTD`, `TWD`, `TZS`, `UAH`, `UGX`, `USD`, `UYU`, `UZS`, `VES`, `VND`, `VUV`, `WST`, `XAF`, `XCD`, `XOF`, `XPF`, `YER`, `ZAR`, `ZMW`, `ZWL`", code: "IR_06", }, }, }, }, InvalidCaptureMethod: { Request: { currency: "EUR", capture_method: "auto", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `auto`, expected one of `automatic`, `manual`, `manual_multiple`, `scheduled`", code: "IR_06", }, }, }, }, InvalidPaymentMethod: { Request: { currency: "EUR", payment_method: "this_supposed_to_be_a_card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `this_supposed_to_be_a_card`, expected one of `card`, `card_redirect`, `pay_later`, `wallet`, `bank_redirect`, `bank_transfer`, `crypto`, `bank_debit`, `reward`, `real_time_payment`, `upi`, `voucher`, `gift_card`, `open_banking`, `mobile_payment`", code: "IR_06", }, }, }, }, InvalidAmountToCapture: { Request: { currency: "EUR", amount_to_capture: 10000, payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2026", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "amount_to_capture contains invalid data. Expected format is amount_to_capture lesser than amount", code: "IR_05", }, }, }, }, MissingRequiredParam: { Request: { currency: "EUR", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2026", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Missing required param: payment_method", code: "IR_04", }, }, }, }, PaymentIntentErrored: { Request: { currency: "EUR", }, Response: { status: 422, body: { error: { type: "invalid_request", message: "A payment token or payment method data or ctp service details is required", code: "IR_06", }, }, }, }, CaptureGreaterAmount: { Request: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", customer_acceptance: null, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "amount_to_capture is greater than amount", code: "IR_06", }, }, }, }, ConfirmSuccessfulPayment: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", customer_acceptance: null, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "You cannot confirm this payment because it has status succeeded", code: "IR_16", }, }, }, }, }, };
5,980
8,686
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Commons.js
.js
// This file is the default. To override, add to connector.js import { getCustomExchange } from "./Modifiers"; export const customerAcceptance = { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }; const successfulNo3DSCardDetails = { card_number: "4111111111111111", card_exp_month: "08", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "999", }; const successfulThreeDSTestCardDetails = { card_number: "4111111111111111", card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", card_cvc: "999", }; const PaymentMethodCardDetails = { card_number: "4111111145551142", card_exp_month: "03", card_exp_year: "30", card_holder_name: "Joseph Doe", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const cardRequiredField = { "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, }; export const fullNameRequiredField = { "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, }; export const billingRequiredField = {}; export const payment_methods_enabled = [ { payment_method: "bank_redirect", payment_method_types: [ { payment_method_type: "blik", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "eps", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "ideal", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "giropay", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "local_bank_redirect", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "przelewy24", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, { payment_method_type: "sofort", payment_experience: null, card_networks: null, accepted_currencies: null, accepted_countries: null, minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, }, ], }, { payment_method: "bank_transfer", payment_method_types: [ { payment_method_type: "pix", minimum_amount: 0, maximum_amount: 68607706, recurring_enabled: false, installment_payment_enabled: true, }, ], }, { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ "AmericanExpress", "Discover", "Interac", "JCB", "Mastercard", "Visa", "DinersClub", "UnionPay", "RuPay", ], minimum_amount: 0, maximum_amount: 68607706, recurring_enabled: false, installment_payment_enabled: true, }, { payment_method_type: "debit", card_networks: [ "AmericanExpress", "Discover", "Interac", "JCB", "Mastercard", "Visa", "DinersClub", "UnionPay", "RuPay", ], minimum_amount: 0, maximum_amount: 68607706, recurring_enabled: false, installment_payment_enabled: true, }, ], }, { payment_method: "real_time_payment", payment_method_types: [ { payment_method_type: "duit_now", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, { payment_method_type: "fps", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, { payment_method_type: "prompt_pay", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, { payment_method_type: "viet_qr", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, ], }, { payment_method: "upi", payment_method_types: [ { payment_method_type: "upi_collect", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, { payment_method_type: "upi_intent", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "redirect_to_url", }, ], }, { payment_method: "wallet", payment_method_types: [ { payment_method_type: "apple_pay", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "invoke_sdk_client", }, { payment_method_type: "google_pay", minimum_amount: 1, maximum_amount: 68607706, recurring_enabled: true, installment_payment_enabled: true, payment_experience: "invoke_sdk_client", }, ], }, ]; export const connectorDetails = { bank_transfer_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "BRL", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), Pix: getCustomExchange({ Request: { payment_method: "bank_transfer", payment_method_type: "pix", payment_method_data: { bank_transfer: { pix: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "BR", first_name: "john", last_name: "doe", }, }, currency: "BRL", }, }), }, bank_redirect_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), Ideal: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "ideal", payment_method_data: { bank_redirect: { ideal: { bank_name: "ing", country: "NL", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "john", last_name: "doe", }, }, }, }), Giropay: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "giropay", payment_method_data: { bank_redirect: { giropay: { bank_name: "", bank_account_bic: "", bank_account_iban: "", preferred_language: "en", country: "DE", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "john", last_name: "doe", }, }, }, }), Sofort: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "sofort", payment_method_data: { bank_redirect: { sofort: { country: "DE", preferred_language: "en", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "john", last_name: "doe", }, }, }, }), Eps: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "eps", payment_method_data: { bank_redirect: { eps: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "AT", first_name: "john", last_name: "doe", }, }, }, }), Przelewy24: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "przelewy24", payment_method_data: { bank_redirect: { przelewy24: { bank_name: "citi", billing_details: { email: "guest@juspay.in", }, }, }, }, }, }), BlikPaymentIntent: getCustomExchange({ Request: { currency: "PLN", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), Blik: getCustomExchange({ Request: { payment_method: "bank_redirect", payment_method_type: "blik", payment_method_data: { bank_redirect: { blik: { blik_code: "777987", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "PL", first_name: "john", last_name: "doe", }, }, }, }), }, card_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), PaymentIntentOffSession: getCustomExchange({ Request: { currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), PaymentIntentWithShippingCost: getCustomExchange({ Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }), PaymentConfirmWithShippingCost: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, }), "3DSManualCapture": getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), "3DSAutoCapture": getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), SessionToken: { Response: { status: 200, body: { session_token: [], }, }, }, No3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), No3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), No3DSFailPayment: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: {}, }, }), Capture: getCustomExchange({ Request: { amount_to_capture: 6000, }, }), PartialCapture: getCustomExchange({ Request: { amount_to_capture: 2000, }, }), Void: getCustomExchange({ Request: {}, Response: { status: 200, body: { status: "cancelled", capture_method: "manual", }, }, ResponseCustom: { status: 400, body: { error: { type: "invalid_request", message: "You cannot cancel this payment because it has status succeeded", code: "IR_16", }, }, }, }), VoidAfterConfirm: getCustomExchange({ Request: {}, Response: { status: 200, body: { status: "cancelled", capture_method: "manual", }, }, ResponseCustom: { status: 400, body: { error: { type: "invalid_request", message: "You cannot cancel this payment because it has status succeeded", code: "IR_16", }, }, }, }), Refund: getCustomExchange({ Request: { amount: 6000, }, }), manualPaymentRefund: getCustomExchange({ Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }), manualPaymentPartialRefund: getCustomExchange({ Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }), PartialRefund: getCustomExchange({ Request: { amount: 2000, }, }), SyncRefund: getCustomExchange({}), MandateSingleUse3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateSingleUse3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateSingleUseNo3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateSingleUseNo3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateMultiUseNo3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), MandateMultiUseNo3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), MandateMultiUse3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), MandateMultiUse3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), ZeroAuthMandate: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), ZeroAuthPaymentIntent: getCustomExchange({ Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", payment_type: "setup_mandate", }, }), ZeroAuthConfirmPayment: getCustomExchange({ Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, }, }), SaveCardUseNo3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, }), SaveCardUseNo3DSAutoCaptureOffSession: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, }), SaveCardUse3DSAutoCaptureOffSession: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, }), SaveCardUseNo3DSManualCaptureOffSession: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, }), SaveCardConfirmAutoCaptureOffSession: getCustomExchange({ Request: { setup_future_usage: "off_session", }, ResponseCustom: { status: 400, body: { error: { message: "No eligible connector was found for the current payment method configuration", type: "invalid_request", }, }, }, }), SaveCardConfirmManualCaptureOffSession: getCustomExchange({ Request: { setup_future_usage: "off_session", }, }), SaveCardConfirmAutoCaptureOffSessionWithoutBilling: { Request: { setup_future_usage: "off_session", billing: null, }, Response: { status: 200, body: { status: "succeeded", billing: null, }, }, }, SaveCardUseNo3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, }), PaymentMethod: { Request: { payment_method: "card", payment_method_type: "credit", payment_method_issuer: "Gpay", payment_method_issuer_code: "jp_hdfc", card: PaymentMethodCardDetails, }, Response: { status: 200, body: {}, }, }, PaymentMethodIdMandateNo3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, }), PaymentMethodIdMandateNo3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, }), PaymentMethodIdMandate3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, }), PaymentMethodIdMandate3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, }), InvalidCardNumber: { Request: { currency: "USD", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "123456", card_exp_month: "10", card_exp_year: "25", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: invalid card number length", code: "IR_06", }, }, }, }, InvalidExpiryMonth: { Request: { currency: "USD", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "00", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid Expiry Month", code: "IR_16", }, }, }, }, InvalidExpiryYear: { Request: { currency: "USD", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid Expiry Year", code: "IR_16", }, }, }, }, InvalidCardCvv: { Request: { currency: "USD", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Invalid card_cvc length", code: "IR_16", }, }, }, }, InvalidCurrency: { Request: { currency: "United", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `United`, expected one of `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`, `CLF`, `CLP`, `CNY`, `COP`, `CRC`, `CUC`, `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`, `SLE`, `SLL`, `SOS`, `SRD`, `SSP`, `STD`, `STN`, `SVC`, `SYP`, `SZL`, `THB`, `TJS`, `TMT`, `TND`, `TOP`, `TRY`, `TTD`, `TWD`, `TZS`, `UAH`, `UGX`, `USD`, `UYU`, `UZS`, `VES`, `VND`, `VUV`, `WST`, `XAF`, `XCD`, `XOF`, `XPF`, `YER`, `ZAR`, `ZMW`, `ZWL`", code: "IR_06", }, }, }, }, InvalidCaptureMethod: { Request: { currency: "USD", capture_method: "auto", payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `auto`, expected one of `automatic`, `manual`, `manual_multiple`, `scheduled`", code: "IR_06", }, }, }, }, InvalidPaymentMethod: { Request: { currency: "USD", payment_method: "this_supposed_to_be_a_card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2023", card_holder_name: "joseph Doe", card_cvc: "123456", }, }, }, Response: { status: 400, body: { error: { error_type: "invalid_request", message: "Json deserialize error: unknown variant `this_supposed_to_be_a_card`, expected one of `card`, `card_redirect`, `pay_later`, `wallet`, `bank_redirect`, `bank_transfer`, `crypto`, `bank_debit`, `reward`, `real_time_payment`, `upi`, `voucher`, `gift_card`, `open_banking`, `mobile_payment`", code: "IR_06", }, }, }, }, InvalidAmountToCapture: { Request: { currency: "USD", amount_to_capture: 10000, payment_method: "card", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2026", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "amount_to_capture contains invalid data. Expected format is amount_to_capture lesser than amount", code: "IR_05", }, }, }, }, MissingRequiredParam: { Request: { currency: "USD", payment_method_type: "debit", setup_future_usage: "on_session", payment_method_data: { card: { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "2026", card_holder_name: "joseph Doe", card_cvc: "123", }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Missing required param: payment_method", code: "IR_04", }, }, }, }, PaymentIntentErrored: { Request: { currency: "USD", }, Response: { status: 422, body: { error: { type: "invalid_request", message: "A payment token or payment method data or ctp service details is required", code: "IR_06", }, }, }, }, CaptureGreaterAmount: { Request: { amount_to_capture: 6000000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "amount_to_capture is greater than amount", code: "IR_06", }, }, }, }, CaptureCapturedAmount: getCustomExchange({ Request: { Request: { amount_to_capture: 6000, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture, partially_captured_and_capturable, processing", code: "IR_14", }, }, }, }), ConfirmSuccessfulPayment: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "You cannot confirm this payment because it has status succeeded", code: "IR_16", }, }, }, }), RefundGreaterAmount: { Request: { amount: 6000000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "The refund amount exceeds the amount captured", code: "IR_13", }, }, }, }, MITAutoCapture: getCustomExchange({ Request: {}, Response: { status: 200, body: { status: "succeeded", }, }, ResponseCustom: { status: 400, body: { error: { message: "No eligible connector was found for the current payment method configuration", type: "invalid_request", }, }, }, }), MITWithoutBillingAddress: getCustomExchange({ Request: { billing: null, }, Response: { status: 200, body: { status: "succeeded", }, }, }), PaymentWithoutBilling: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", authentication_type: "no_three_ds", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentWithBilling: { Request: { currency: "USD", setup_future_usage: "on_session", billing: { address: { line1: "1467", line2: "CA", line3: "Harrison Street", city: "San Fransico", state: "CA", zip: "94122", country: "PL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9111222333", country_code: "+91", }, }, email: "hyperswitch.example@gmail.com", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentWithFullName: { Request: { currency: "USD", setup_future_usage: "on_session", billing: { address: { first_name: "joseph", last_name: "Doe", }, phone: { number: "9111222333", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentWithBillingEmail: { Request: { currency: "USD", setup_future_usage: "on_session", email: "hyperswitch_sdk_demo_id1@gmail.com", billing: { address: { first_name: "joseph", last_name: "Doe", }, phone: { number: "9111222333", country_code: "+91", }, email: "hyperswitch.example@gmail.com", }, }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, DuplicatePaymentID: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 400, body: { error: { type: "invalid_request", message: "The payment with the specified payment_id already exists in our records", code: "HE_01", }, }, }, }, DuplicateRefundID: { Request: { amount: 2000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Duplicate refund request. Refund already attempted with the refund ID", code: "HE_01", }, }, }, }, }, upi_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "INR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), UpiCollect: getCustomExchange({ Request: { payment_method: "upi", payment_method_type: "upi_collect", payment_method_data: { upi: { upi_collect: { vpa_id: "successtest@iata", }, }, }, }, }), UpiIntent: getCustomExchange({ Request: { payment_method: "upi", payment_method_type: "upi_intent", payment_method_data: { upi: { upi_intent: {}, }, }, }, }), }, pm_list: { PmListResponse: { PmListNull: { payment_methods: [], }, pmListDynamicFieldWithoutBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [], required_fields: {}, }, ], }, ], }, pmListDynamicFieldWithBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [], required_fields: {}, }, ], }, ], }, pmListDynamicFieldWithNames: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [], required_fields: {}, }, ], }, ], }, pmListDynamicFieldWithEmail: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [], required_fields: {}, }, ], }, ], }, }, }, };
9,999
8,687
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Utils.js
.js
import { execConfig, validateConfig } from "../../../utils/featureFlags.js"; import { connectorDetails as adyenConnectorDetails } from "./Adyen.js"; import { connectorDetails as bankOfAmericaConnectorDetails } from "./BankOfAmerica.js"; import { connectorDetails as bluesnapConnectorDetails } from "./Bluesnap.js"; import { connectorDetails as checkoutConnectorDetails } from "./Checkout.js"; import { connectorDetails as commonConnectorDetails } from "./Commons.js"; import { updateDefaultStatusCode } from "./Modifiers.js"; import { connectorDetails as cybersourceConnectorDetails } from "./Cybersource.js"; import { connectorDetails as datatransConnectorDetails } from "./Datatrans.js"; import { connectorDetails as elavonConnectorDetails } from "./Elavon.js"; import { connectorDetails as fiservemeaConnectorDetails } from "./Fiservemea.js"; import { connectorDetails as fiuuConnectorDetails } from "./Fiuu.js"; import { connectorDetails as getnetConnectorDetails } from "./Getnet.js"; import { connectorDetails as iatapayConnectorDetails } from "./Iatapay.js"; import { connectorDetails as itaubankConnectorDetails } from "./ItauBank.js"; import { connectorDetails as jpmorganConnectorDetails } from "./Jpmorgan.js"; import { connectorDetails as monerisConnectorDetails } from "./Moneris.js"; import { connectorDetails as nexixpayConnectorDetails } from "./Nexixpay.js"; import { connectorDetails as nmiConnectorDetails } from "./Nmi.js"; import { connectorDetails as noonConnectorDetails } from "./Noon.js"; import { connectorDetails as novalnetConnectorDetails } from "./Novalnet.js"; import { connectorDetails as payboxConnectorDetails } from "./Paybox.js"; import { connectorDetails as paypalConnectorDetails } from "./Paypal.js"; import { connectorDetails as redsysConnectorDetails } from "./Redsys.js"; import { connectorDetails as stripeConnectorDetails } from "./Stripe.js"; import { connectorDetails as HipayConnectorDetails } from "./Hipay.js"; import { connectorDetails as trustpayConnectorDetails } from "./Trustpay.js"; import { connectorDetails as wellsfargoConnectorDetails } from "./WellsFargo.js"; import { connectorDetails as worldpayConnectorDetails } from "./WorldPay.js"; import { connectorDetails as deutschebankConnectorDetails } from "./Deutschebank.js"; import { connectorDetails as xenditConnectorDetails } from "./Xendit.js"; const connectorDetails = { adyen: adyenConnectorDetails, bankofamerica: bankOfAmericaConnectorDetails, bluesnap: bluesnapConnectorDetails, checkout: checkoutConnectorDetails, commons: commonConnectorDetails, cybersource: cybersourceConnectorDetails, deutschebank: deutschebankConnectorDetails, fiservemea: fiservemeaConnectorDetails, getnet: getnetConnectorDetails, iatapay: iatapayConnectorDetails, itaubank: itaubankConnectorDetails, jpmorgan: jpmorganConnectorDetails, moneris: monerisConnectorDetails, nexixpay: nexixpayConnectorDetails, nmi: nmiConnectorDetails, novalnet: novalnetConnectorDetails, paybox: payboxConnectorDetails, xendit: xenditConnectorDetails, paypal: paypalConnectorDetails, hipay: HipayConnectorDetails, redsys: redsysConnectorDetails, stripe: stripeConnectorDetails, elavon: elavonConnectorDetails, trustpay: trustpayConnectorDetails, datatrans: datatransConnectorDetails, wellsfargo: wellsfargoConnectorDetails, fiuu: fiuuConnectorDetails, worldpay: worldpayConnectorDetails, noon: noonConnectorDetails, }; export default function getConnectorDetails(connectorId) { const x = mergeDetails(connectorId); return x; } export function getConnectorFlowDetails(connectorData, commonData, key) { const data = connectorData[key] === undefined ? commonData[key] : connectorData[key]; return data; } function mergeDetails(connectorId) { const connectorData = getValueByKey( connectorDetails, connectorId ).authDetails; const fallbackData = getValueByKey(connectorDetails, "commons").authDetails; // Merge data, prioritizing connectorData and filling missing data from fallbackData const mergedDetails = mergeConnectorDetails(connectorData, fallbackData); return mergedDetails; } function mergeConnectorDetails(source, fallback) { const merged = {}; // Loop through each key in the source object for (const key in source) { merged[key] = { ...source[key] }; // Copy properties from source // Check if fallback has the same key and properties are missing in source if (fallback[key]) { for (const subKey in fallback[key]) { if (!merged[key][subKey]) { merged[key][subKey] = fallback[key][subKey]; } } } } // Add missing keys from fallback that are not present in source for (const key in fallback) { if (!merged[key]) { merged[key] = fallback[key]; } } return merged; } export function handleMultipleConnectors(keys) { return { MULTIPLE_CONNECTORS: { status: true, count: keys.length, }, }; } export function getValueByKey(jsonObject, key, keyNumber = 0) { const data = typeof jsonObject === "string" ? JSON.parse(jsonObject) : jsonObject; if (data && typeof data === "object" && key in data) { // Connector object has multiple keys if (typeof data[key].connector_account_details === "undefined") { const keys = Object.keys(data[key]); for (let i = keyNumber; i < keys.length; i++) { const currentItem = data[key][keys[i]]; if ( Object.prototype.hasOwnProperty.call( currentItem, "connector_account_details" ) ) { // Return state update instead of setting directly return { authDetails: currentItem, stateUpdate: handleMultipleConnectors(keys), }; } } } return { authDetails: data[key], stateUpdate: null, }; } return { authDetails: null, stateUpdate: null, }; } export const should_continue_further = (data) => { const resData = data.Response || {}; const configData = validateConfig(data.Configs) || {}; if (typeof configData?.TRIGGER_SKIP !== "undefined") { return !configData.TRIGGER_SKIP; } if ( typeof resData.body.error !== "undefined" || typeof resData.body.error_code !== "undefined" || typeof resData.body.error_message !== "undefined" ) { return false; } else { return true; } }; export function defaultErrorHandler(response, response_data) { if ( response.status === 400 && response.body.error.message === "Payment method type not supported" ) { // Update the default status from 501 to 400 as `unsupported payment method` error is the next common error after `not implemented` error response_data = updateDefaultStatusCode(); } if (response_data.status === 200) { throw new Error("Expecting valid response but got an error response"); } expect(response.body).to.have.property("error"); if (typeof response.body.error === "object") { for (const key in response_data.body.error) { // Check if the error message is a Json deserialize error const apiResponseContent = response.body.error[key]; const expectedContent = response_data.body.error[key]; if ( typeof apiResponseContent === "string" && apiResponseContent.includes("Json deserialize error") ) { expect(apiResponseContent).to.include(expectedContent); } else { expect(apiResponseContent).to.equal(expectedContent); } } } } export function extractIntegerAtEnd(str) { // Match one or more digits at the end of the string const match = str.match(/(\d+)$/); return match ? parseInt(match[0], 10) : 0; } // Common helper function to check if operation should proceed function shouldProceedWithOperation(multipleConnector, multipleConnectors) { return !( multipleConnector?.nextConnector === true && (multipleConnectors?.status === false || typeof multipleConnectors === "undefined") ); } // Helper to get connector configuration function getConnectorConfig( globalState, multipleConnector = { nextConnector: false } ) { const multipleConnectors = globalState.get("MULTIPLE_CONNECTORS"); const mcaConfig = getConnectorDetails(globalState.get("connectorId")); return { CONNECTOR_CREDENTIAL: multipleConnector?.nextConnector && multipleConnectors?.status ? multipleConnector : mcaConfig?.multi_credential_config || multipleConnector, multipleConnectors, }; } // Simplified createBusinessProfile export function createBusinessProfile( createBusinessProfileBody, globalState, multipleConnector = { nextConnector: false } ) { const config = getConnectorConfig(globalState, multipleConnector); const { profilePrefix } = execConfig(config); if ( shouldProceedWithOperation(multipleConnector, config.multipleConnectors) ) { cy.createBusinessProfileTest( createBusinessProfileBody, globalState, profilePrefix ); } } // Simplified createMerchantConnectorAccount export function createMerchantConnectorAccount( paymentType, createMerchantConnectorAccountBody, globalState, paymentMethodsEnabled, multipleConnector = { nextConnector: false } ) { const config = getConnectorConfig(globalState, multipleConnector); const { profilePrefix, merchantConnectorPrefix } = execConfig(config); if ( shouldProceedWithOperation(multipleConnector, config.multipleConnectors) ) { cy.createConnectorCallTest( paymentType, createMerchantConnectorAccountBody, paymentMethodsEnabled, globalState, profilePrefix, merchantConnectorPrefix ); } } export function updateBusinessProfile( updateBusinessProfileBody, is_connector_agnostic_enabled, collect_billing_address_from_wallet_connector, collect_shipping_address_from_wallet_connector, always_collect_billing_address_from_wallet_connector, always_collect_shipping_address_from_wallet_connector, globalState ) { const multipleConnectors = globalState.get("MULTIPLE_CONNECTORS"); cy.log(`MULTIPLE_CONNECTORS: ${JSON.stringify(multipleConnectors)}`); // Get MCA config const mcaConfig = getConnectorDetails(globalState.get("connectorId")); const { profilePrefix } = execConfig({ CONNECTOR_CREDENTIAL: mcaConfig?.multi_credential_config, }); cy.UpdateBusinessProfileTest( updateBusinessProfileBody, is_connector_agnostic_enabled, collect_billing_address_from_wallet_connector, collect_shipping_address_from_wallet_connector, always_collect_billing_address_from_wallet_connector, always_collect_shipping_address_from_wallet_connector, globalState, profilePrefix ); } export const CONNECTOR_LISTS = { // Exclusion lists (skip these connectors) EXCLUDE: { CONNECTOR_AGNOSTIC_NTID: ["bankofamerica", "fiuu", "paypal"], // Add more exclusion lists }, // Inclusion lists (only run for these connectors) INCLUDE: { MANDATES_USING_NTID_PROXY: ["cybersource"], // Add more inclusion lists }, }; // Helper functions export const shouldExcludeConnector = (connectorId, list) => { return list.includes(connectorId); }; export const shouldIncludeConnector = (connectorId, list) => { return !list.includes(connectorId); };
2,542
8,688
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Checkout.js
.js
const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const customerAcceptance = { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "processing", shipping_cost: 50, amount: 6000, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "processing", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Checkout is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Checkout is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "processing", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, }, };
1,679
8,689
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "10", card_exp_year: "30", card_holder_name: "John", card_cvc: "737", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000001091", card_exp_month: "10", card_exp_year: "30", card_holder_name: "Joseph", card_cvc: "737", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", amount: 6000, shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", amount: 6000, shipping_cost: 50, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Bluesnap is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Bluesnap is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, }, };
1,706
8,690
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Redsys.js
.js
import { getCustomExchange } from "./Modifiers"; const ThreeDSChallengeTestCardDetails = { card_number: "4548817212493017", card_exp_month: "12", card_exp_year: "25", card_holder_name: "Joseph", card_cvc: "123", }; const threeDSFrictionlessTestCardDetails = { card_number: "4548814479727229", card_exp_month: "12", card_exp_year: "25", card_holder_name: "Joseph", card_cvc: "123", }; const Address = { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "Ceuta", zip: "94122", country: "ES", first_name: "joseph", last_name: "Doe", }, email: "mauro.morandi@nexi.it", phone: { number: "9123456789", country_code: "+91", }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentConfirmWithShippingCost: getCustomExchange({ Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, }), No3DSManualCapture: getCustomExchange({ Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, }), MandateSingleUseNo3DSManualCapture: getCustomExchange({ Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, billing: Address, shipping: Address, }, }), MandateSingleUseNo3DSAutoCapture: getCustomExchange({ Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, billing: Address, shipping: Address, }, }), MandateMultiUseNo3DSAutoCapture: getCustomExchange({ Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, billing: Address, shipping: Address, }, }), ZeroAuthMandate: { Request: { currency: "EUR", payment_method_type: "credit", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, billing: Address, shipping: Address, payment_type: "setup_mandate", }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Redsys is not implemented", code: "IR_00", }, }, }, }, "3DSManualCapture": { Request: { currency: "EUR", authentication_type: "three_ds", payment_method_type: "credit", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { currency: "EUR", payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", amount: 5000, payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", billing: Address, shipping: Address, }, }), Capture: { Configs: { TRIGGER_SKIP: true, }, Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 5000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 5000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for redsys is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { currency: "EUR", billing: Address, shipping: Address, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentIntentOffSession: { Configs: { TRIGGER_SKIP: true, }, Request: { currency: "EUR", amount: 6000, authentication_type: "no_three_ds", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: threeDSFrictionlessTestCardDetails, }, billing: Address, shipping: Address, currency: "EUR", amount: 6000, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: threeDSFrictionlessTestCardDetails, }, billing: Address, shipping: Address, currency: "EUR", amount: 6000, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, billing: Address, shipping: Address, currency: "EUR", amount: 6000, }, Response: { status: 200, body: { status: "failed", }, }, }, No3DSFailPayment: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, billing: Address, shipping: Address, currency: "EUR", amount: 6000, }, }), SaveCardUseNo3DSAutoCaptureOffSession: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: ThreeDSChallengeTestCardDetails, }, billing: Address, shipping: Address, currency: "EUR", amount: 6000, }, }), }, };
2,616
8,691
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Adyen.js
.js
import { customerAcceptance } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "4111111111111111", card_exp_month: "03", card_exp_year: "30", card_holder_name: "John Doe", card_cvc: "737", }; const successfulThreeDSTestCardDetails = { card_number: "4917610000000000", card_exp_month: "03", card_exp_year: "30", card_holder_name: "Joseph Doe", card_cvc: "737", }; const failedNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "35", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentOffSession: { Request: { amount: 6000, authentication_type: "no_three_ds", currency: "USD", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, No3DSFailPayment: { Request: { payment_method: "card", payment_method_data: { card: failedNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "failed", error_code: "2", error_message: "Refused", unified_code: "UE_9000", unified_message: "Something went wrong", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, amount_received: 0, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, amount_received: 0, }, }, }, VoidAfterConfirm: getCustomExchange({ Request: {}, Response: { status: 200, body: { status: "processing", }, }, ResponseCustom: { status: 200, body: { status: "cancelled", }, }, }), Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured", code: "IR_14", }, }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured", code: "IR_14", }, }, }, }, SyncRefund: { Response: { status: 200, body: { status: "pending", }, }, }, MandateSingleUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: { Request: {}, Response: { status: 200, body: { status: "succeeded", }, }, }, MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "succeeded", setup_future_usage: "off_session", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, bank_transfer_pm: { PaymentIntent: { Request: { currency: "BRL", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, Pix: { Request: { payment_method: "bank_transfer", payment_method_type: "pix", payment_method_data: { bank_transfer: { pix: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "BR", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, currency: "BRL", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, bank_redirect_pm: { PaymentIntent: { Request: { currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, Ideal: { Request: { payment_method: "bank_redirect", payment_method_type: "ideal", payment_method_data: { bank_redirect: { ideal: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Eps: { Request: { payment_method: "bank_redirect", payment_method_type: "eps", payment_method_data: { bank_redirect: { eps: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "AT", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Blik: { Request: { payment_method: "bank_redirect", payment_method_type: "blik", payment_method_data: { bank_redirect: { blik: { name: "John Doe", email: "example@email.com", blik_code: "777987", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "PL", first_name: "john", last_name: "doe", }, }, }, Response: { status: 200, body: { status: "processing", }, }, }, }, upi_pm: { PaymentIntent: { Request: { currency: "INR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, UpiCollect: { Request: { payment_method: "upi", payment_method_type: "upi_collect", payment_method_data: { upi: { upi_collect: { vpa_id: "successtest@iata", }, }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "HE_03", reason: "automatic for upi_collect is not supported by adyen", }, }, }, }, UpiIntent: { Request: { payment_method: "upi", payment_method_type: "upi_intent", payment_method_data: { upi: { upi_intent: {}, }, }, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "HE_03", reason: "automatic for upi_intent is not supported by adyen", }, }, }, }, }, pm_list: { PmListResponse: { PmListNull: { payment_methods: [], }, pmListDynamicFieldWithoutBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["adyen"], }, ], required_fields: { "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, }, }, ], }, ], }, pmListDynamicFieldWithBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["adyen"], }, ], required_fields: { "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, }, }, ], }, ], }, pmListDynamicFieldWithNames: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["adyen"], }, ], required_fields: { "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, }, }, ], }, ], }, pmListDynamicFieldWithEmail: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["adyen"], }, ], required_fields: { "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, }, }, ], }, ], }, }, }, };
6,295
8,692
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/ItauBank.js
.js
export const connectorDetails = { card_pm: { ZeroAuthMandate: { Response: { status: 400, body: { error: { type: "invalid_request", message: "setup mandate flow not supported", code: "IR_20", }, }, }, }, }, bank_transfer_pm: { PaymentIntent: { Request: { currency: "BRL", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, Pix: { Request: { payment_method: "bank_transfer", payment_method_type: "pix", payment_method_data: { bank_transfer: { pix: { pix_key: "a1f4102e-a446-4a57-bcce-6fa48899c1d1", cnpj: "74469027417312", cpf: "10599054689", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "BR", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, };
399
8,693
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "5105105105105100", card_exp_month: "12", card_exp_year: "2030", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "5105105105105100", card_exp_month: "12", card_exp_year: "2031", card_holder_name: "joseph Doe", card_cvc: "444", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "pending", }, }, }, MandateSingleUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: { Request: {}, Response: { status: 200, body: { status: "failed", error_code: "The currency not allow for the RecordType", error_message: "The currency not allow for the RecordType", }, }, }, MITWithoutBillingAddress: { Request: { billing: null, }, Response: { status: 200, body: { status: "failed", error_code: "The currency not allow for the RecordType", error_message: "The currency not allow for the RecordType", }, }, }, MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "failed", error_code: "The currency not allow for the RecordType", error_message: "The currency not allow for the RecordType", }, }, }, PaymentIntentOffSession: { Request: { amount: 6000, authentication_type: "no_three_ds", currency: "USD", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "failed", error_message: "The currency not allow for the RecordType", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "failed", error_message: "The currency not allow for the RecordType", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentConfirmWithShippingCost: { Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "processing", }, }, }, SaveCardConfirmAutoCaptureOffSessionWithoutBilling: { Request: { setup_future_usage: "off_session", billing: null, }, Response: { status: 200, body: { status: "failed", error_message: "The currency not allow for the RecordType", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "processing", setup_future_usage: "off_session", }, }, }, }, };
4,467
8,694
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Hipay.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "4111111111111111", card_exp_month: "06", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const billing_info = { address: { line1: "1467", line2: "CA", line3: "CA", city: "Florence", state: "Tuscany", zip: "12345", country: "IT", first_name: "Max", last_name: "Mustermann", }, email: "mauro.morandi@nexi.it", phone: { number: "9123456789", country_code: "+91", }, }; const successful3DSCardDetails = { card_number: "4000000000000002", card_exp_month: "06", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "EUR", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "EUR", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", billing: billing_info, }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "mauro.morandi@nexi.it", }, }, billing: { email: "mauro.morandi@nexi.it", }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "mauro.morandi@nexi.it", }, }, billing: { email: "mauro.morandi@nexi.it", }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, email: "johndoe@gmail.com", }, }, currency: "EUR", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "mauro.morandi@nexi.it", }, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, email: "mauro.morandi@nexi.it", }, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, email: "mauro.morandi@nexi.it", }, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Configs: { TRIGGER_SKIP: true, }, Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Configs: { TRIGGER_SKIP: true, }, Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, email: "mauro.morandi@nexi.it", }, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateSingleUseNo3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "mauro.morandi@nexi.it", }, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, billing: { email: "mauro.morandi@nexi.it", }, }, currency: "EUR", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, VoidAfterConfirm: { Request: { cancellation_reason: "user_cancel", }, Response: { status: 200, body: { status: "processing", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "pending", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", billing: { email: "mauro.morandi@nexi.it", }, mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, billing: { email: "mauro.morandi@nexi.it", }, currency: "EUR", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "EUR", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, currency: "EUR", billing: billing_info, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, billing: billing_info, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, };
3,439
8,695
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Noon.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "30", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000001091", card_exp_month: "01", card_exp_year: "30", card_holder_name: "joseph Doe", card_cvc: "123", }; const connectorMetadata = { noon: { order_category: "pay", }, }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; const payment_method_data_3ds = { card: { last4: "1091", card_type: "CREDIT", card_network: "Visa", card_issuer: "INTL HDQTRS-CENTER OWNED", card_issuing_country: "UNITEDSTATES", card_isin: "400000", card_extended_bin: null, card_exp_month: "01", card_exp_year: "30", card_holder_name: null, payment_checks: null, authentication_data: null, }, billing: null, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "AED", customer_acceptance: null, setup_future_usage: "on_session", connector_metadata: connectorMetadata, }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "on_session", }, }, }, PaymentIntentOffSession: { Request: { currency: "AED", amount: 6000, authentication_type: "no_three_ds", customer_acceptance: null, setup_future_usage: "off_session", connector_metadata: connectorMetadata, }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "AED", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", shipping_cost: 50, amount: 6000, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", currency: "AED", payment_method_data: { card: successfulThreeDSTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", connector_metadata: connectorMetadata, }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "AED", customer_acceptance: null, connector_metadata: connectorMetadata, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, connector_metadata: connectorMetadata, customer_acceptance: null, currency: "AED", setup_future_usage: "on_session", }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, connector_metadata: connectorMetadata, currency: "AED", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, trigger_skip: true, body: { status: "failed", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, trigger_skip: true, body: { status: "failed", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, connector_metadata: connectorMetadata, mandate_data: singleUseMandateData, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, MandateSingleUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: singleUseMandateData, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: singleUseMandateData, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: multiUseMandateData, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: multiUseMandateData, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: { Request: {}, Response: { status: 200, body: { status: "succeeded", }, }, }, MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Noon is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "AED", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Noon is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: null, customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "AED", mandate_data: null, customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "AED", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "AED", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, connector_metadata: connectorMetadata, }, Response: { status: 200, trigger_skip: true, body: { status: "requires_customer_action", }, }, }, }, };
3,879
8,696
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Moneris.js
.js
import { customerAcceptance } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "27", card_holder_name: "John", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "27", card_holder_name: "Joseph", card_cvc: "123", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", amount: 5000, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", amount: 5000, shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", amount: 5000, shipping_cost: 50, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 5050, amount: 5000, net_amount: 5050, }, }, }, "3DSManualCapture": getCustomExchange({ Request: { amount: 5000, payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), "3DSAutoCapture": getCustomExchange({ Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), No3DSManualCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 5000, }, Response: { status: 200, body: { status: "succeeded", amount: 5000, amount_capturable: 0, amount_received: 5000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 5000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 5000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 5000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Moneris is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Moneris is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, }, };
1,703
8,697
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Stripe.js
.js
import { customerAcceptance, cardRequiredField, connectorDetails as commonConnectorDetails, } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "378282246310005", card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", card_cvc: "737", }; const successfulThreeDSTestCardDetails = { card_number: "4000002500003155", card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", card_cvc: "737", }; const failedNo3DSCardDetails = { card_number: "4000000000000002", card_exp_month: "01", card_exp_year: "35", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; const payment_method_data_3ds = { card: { last4: "3155", card_type: "CREDIT", card_network: "Visa", card_issuer: "INTL HDQTRS-CENTER OWNED", card_issuing_country: "UNITEDSTATES", card_isin: "400000", card_extended_bin: null, card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", payment_checks: null, authentication_data: null, }, billing: null, }; const payment_method_data_no3ds = { card: { last4: "0005", card_type: "CREDIT", card_network: "AmericanExpress", card_issuer: "AmericanExpress", card_issuing_country: "INDIA", card_isin: "378282", card_extended_bin: null, card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", payment_checks: { cvc_check: "pass", address_line1_check: "pass", address_postal_code_check: "pass", }, authentication_data: null, }, billing: null, }; const requiredFields = { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["stripe"], }, ], required_fields: cardRequiredField, }, ], }, ], }; export const connectorDetails = { multi_credential_config: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "on_session", }, }, }, PaymentIntentOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, }, Request: { currency: "USD", customer_acceptance: null, amount: 6000, authentication_type: "no_three_ds", setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, SessionToken: { Response: { status: 200, body: { session_token: [ { wallet_name: "apple_pay", connector: "stripe", }, { wallet_name: "google_pay", connector: "stripe", }, ], }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", payment_method: "card", attempt_count: 1, payment_method_data: payment_method_data_no3ds, }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", payment_method: "card", attempt_count: 1, payment_method_data: payment_method_data_no3ds, }, }, }, No3DSFailPayment: { Request: { payment_method: "card", payment_method_data: { card: failedNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "failed", error_code: "card_declined", error_message: "message - Your card was declined., decline_code - generic_decline", unified_code: "UE_9000", unified_message: "Something went wrong", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: getCustomExchange({ Configs: { CONNECTOR_CREDENTIAL: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, }, ...commonConnectorDetails.card_pm.MITAutoCapture, }), MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "succeeded", setup_future_usage: "off_session", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["connectorAgnosticNTID"], value: "connector_2", }, }, Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSessionWithoutBilling: { Request: { setup_future_usage: "off_session", billing: null, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, bank_redirect_pm: { PaymentIntent: getCustomExchange({ Request: { currency: "EUR", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }), Ideal: { Request: { payment_method: "bank_redirect", payment_method_type: "ideal", payment_method_data: { bank_redirect: { ideal: { bank_name: "ing", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Giropay: { Request: { payment_method: "bank_redirect", payment_method_type: "giropay", payment_method_data: { bank_redirect: { giropay: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "failed", error_code: "payment_method_not_available", error_message: "Giropay is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/giropay", }, }, }, Sofort: { Request: { payment_method: "bank_redirect", payment_method_type: "sofort", payment_method_data: { bank_redirect: { sofort: {}, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "DE", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "failed", error_code: "payment_method_not_available", error_message: "Sofort is deprecated and can no longer be used for payment acceptance. Please refer to https://docs.stripe.com/payments/sofort", }, }, }, Eps: { Request: { payment_method: "bank_redirect", payment_method_type: "eps", payment_method_data: { bank_redirect: { eps: { bank_name: "bank_austria", }, }, }, billing: { address: { line1: "1467", line2: "Harrison Street", line3: "Harrison Street", city: "San Fransico", state: "California", zip: "94122", country: "AT", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, Blik: { Request: { payment_method: "bank_redirect", payment_method_type: "blik", payment_method_data: { bank_redirect: { blik: { blik_code: "777987", }, }, }, }, Response: { status: 200, body: { status: "failed", error_code: "payment_intent_invalid_parameter", }, }, }, Przelewy24: { Request: { payment_method: "bank_redirect", payment_method_type: "przelewy24", payment_method_data: { bank_redirect: { przelewy24: { bank_name: "citi", billing_details: { email: "guest@juspay.in", }, }, }, }, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, pm_list: { PmListResponse: { PmListNull: { payment_methods: [], }, pmListDynamicFieldWithoutBilling: requiredFields, pmListDynamicFieldWithBilling: requiredFields, pmListDynamicFieldWithNames: requiredFields, pmListDynamicFieldWithEmail: requiredFields, }, }, };
5,705
8,698
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js
.js
import { customerAcceptance } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000001091", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentOffSession: { Request: { currency: "USD", amount: 6000, authentication_type: "no_three_ds", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", amount: 6000, shipping_cost: 50, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), "3DSAutoCapture": getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, }), No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "pending", }, }, }, MandateSingleUse3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateSingleUse3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, }), MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), MandateMultiUse3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, }), MITAutoCapture: { Request: {}, Response: { status: 200, body: { status: "succeeded", }, }, }, MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "succeeded", setup_future_usage: "off_session", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUse3DSAutoCaptureOffSession: getCustomExchange({ Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, }), SaveCardUseNo3DSManualCaptureOffSession: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, }), PaymentMethodIdMandate3DSManualCapture: getCustomExchange({ Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, }), }, pm_list: { PmListResponse: { PmListNull: { payment_methods: [], }, pmListDynamicFieldWithoutBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["bankofamerica"], }, ], required_fields: { "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, "billing.address.state": { required_field: "payment_method_data.billing.address.state", display_name: "state", field_type: "user_address_state", value: null, }, "billing.address.country": { required_field: "payment_method_data.billing.address.country", display_name: "country", field_type: { user_address_country: { options: ["ALL"], }, }, value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "billing.address.zip": { required_field: "payment_method_data.billing.address.zip", display_name: "zip", field_type: "user_address_pincode", value: null, }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "billing.address.line1": { required_field: "payment_method_data.billing.address.line1", display_name: "line1", field_type: "user_address_line1", value: null, }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, email: { required_field: "email", display_name: "email", field_type: "user_email_address", value: "hyperswitch_sdk_demo_id@gmail.com", }, "billing.address.city": { required_field: "payment_method_data.billing.address.city", display_name: "city", field_type: "user_address_city", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, }, }, ], }, ], }, pmListDynamicFieldWithBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["bankofamerica"], }, ], required_fields: { "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, "billing.address.state": { required_field: "payment_method_data.billing.address.state", display_name: "state", field_type: "user_address_state", value: "CA", }, "billing.address.country": { required_field: "payment_method_data.billing.address.country", display_name: "country", field_type: { user_address_country: { options: ["ALL"], }, }, value: "PL", }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "billing.address.zip": { required_field: "payment_method_data.billing.address.zip", display_name: "zip", field_type: "user_address_pincode", value: "94122", }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "billing.address.line1": { required_field: "payment_method_data.billing.address.line1", display_name: "line1", field_type: "user_address_line1", value: "1467", }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, email: { required_field: "email", display_name: "email", field_type: "user_email_address", value: "hyperswitch.example@gmail.com", }, "billing.address.city": { required_field: "payment_method_data.billing.address.city", display_name: "city", field_type: "user_address_city", value: "San Fransico", }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, }, }, ], }, ], }, pmListDynamicFieldWithNames: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["bankofamerica"], }, ], required_fields: { "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, }, }, ], }, ], }, pmListDynamicFieldWithEmail: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["bankofamerica"], }, ], required_fields: { email: { required_field: "email", display_name: "email", field_type: "user_email_address", value: "hyperswitch_sdk_demo_id1@gmail.com", }, }, }, ], }, ], }, }, }, };
4,865
8,699
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Nmi.js
.js
const successfulNo3DSCardDetails = { card_number: "4000000000002503", card_exp_month: "08", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "999", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000002503", card_exp_month: "10", card_exp_year: "50", card_holder_name: "morino", card_cvc: "999", }; const customerAcceptance = { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "processing", shipping_cost: 50, amount: 6000, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "processing", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, }, }, }, Void: { Request: { cancellation_reason: "user_cancel", }, Response: { status: 200, body: { status: "cancelled", }, }, }, VoidAfterConfirm: { Request: { cancellation_reason: "user_cancel", }, Response: { status: 200, body: { status: "processing", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentRefund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentPartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Nmi is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Nmi is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "processing", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Configs: { // Skipping redirection here for mandate 3ds auto capture as it requires changes from the core TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, };
1,944
8,700
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Deutschebank.js
.js
const successful3DSCardDetails = { card_number: "4761739090000088", card_exp_month: "12", card_exp_year: "2034", card_holder_name: "John Doe", card_cvc: "123", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { currency: "USD", payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "IR_19", }, }, }, }, No3DSAutoCapture: { Request: { currency: "USD", payment_method: "card", payment_method_data: { card: successful3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 400, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "IR_19", }, }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Refund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Configs: { TRIGGER_SKIP: true, }, Response: { status: 200, body: { status: "succeeded", }, }, }, }, };
1,017
8,701
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Getnet.js
.js
const successfulNo3DSCardDetails = { card_number: "5413330300001006", card_exp_month: "02", card_exp_year: "2027", card_holder_name: "John Doe", card_cvc: "006", card_network: "Visa", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "GBP", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "GBP", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", amount: 6000, shipping_cost: 50, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "GBP", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "IR_19", reason: "3DS payments is not supported by Getnet", }, }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "GBP", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Payment method type not supported", code: "IR_19", reason: "3DS payments is not supported by Getnet", }, }, }, }, No3DSManualCapture: { Request: { currency: "GBP", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { currency: "GBP", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentRefund: { Request: { amount: 6000, payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, }, Response: { status: 200, body: { status: "succeeded", }, }, }, manualPaymentPartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Getnet is not implemented", code: "IR_00", }, }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Getnet is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", amount: 5000, payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: { acceptance_type: "offline", accepted_at: "1963-05-03T04:07:52.723Z", online: { ip_address: "127.0.0.1", user_agent: "amet irure esse", }, }, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, }, };
1,888
8,702
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000001091", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, "3DSManualCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, "3DSAutoCapture": { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "pending", }, }, }, MandateSingleUse3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: { Request: {}, Response: { status: 200, body: { status: "succeeded", }, }, }, MITManualCapture: { Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Configs: { TRIGGER_SKIP: true, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, };
2,610
8,703
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js
.js
const successfulNo3DSCardDetails = { card_number: "6011016011016011", card_exp_month: "10", card_exp_year: "2027", card_holder_name: "John Doe", card_cvc: "123", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, "3DSManualCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 501, body: { error: { type: "invalid_request", message: "3DS payments is not supported by Jpmorgan", code: "IR_00", }, }, }, }, "3DSAutoCapture": { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 501, body: { error: { type: "invalid_request", message: "Three_ds payments is not supported by Jpmorgan", code: "IR_00", }, }, }, }, No3DSManualCapture: { Request: { currency: "USD", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { currency: "USD", payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Refund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 6000, }, Response: { status: 501, body: { type: "invalid_request", message: "Refunds is not implemented", code: "IR_00", }, }, }, manualPaymentRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 6000, }, Response: { status: 501, body: { type: "invalid_request", message: "Refunds is not implemented", code: "IR_00", }, }, }, manualPaymentPartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 501, body: { type: "invalid_request", message: "Refunds is not implemented", code: "IR_00", }, }, }, PartialRefund: { Configs: { TRIGGER_SKIP: true, }, Request: { amount: 2000, }, Response: { status: 501, body: { type: "invalid_request", message: "Refunds is not implemented", code: "IR_00", }, }, }, SyncRefund: { Configs: { TRIGGER_SKIP: true, }, Response: { status: 404, body: { type: "invalid_request", message: "Refund does not exist in our records.", code: "HE_02", }, }, }, }, };
1,137
8,704
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
.js
import { customerAcceptance, connectorDetails as commonConnectorDetails, } from "./Commons"; import { getCustomExchange } from "./Modifiers"; const successfulNo3DSCardDetails = { card_number: "4242424242424242", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const successfulThreeDSTestCardDetails = { card_number: "4000000000002701", card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; const singleUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { single_use: { amount: 8000, currency: "USD", }, }, }; const multiUseMandateData = { customer_acceptance: customerAcceptance, mandate_type: { multi_use: { amount: 8000, currency: "USD", }, }, }; const payment_method_data_no3ds = { card: { last4: "4242", card_type: "CREDIT", card_network: "Visa", card_issuer: "STRIPE PAYMENTS UK LIMITED", card_issuing_country: "UNITEDKINGDOM", card_isin: "424242", card_extended_bin: null, card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", payment_checks: { avs_response: { code: "Y", codeRaw: "Y", }, card_verification: null, }, authentication_data: null, }, billing: null, }; const payment_method_data_3ds = { card: { last4: "2701", card_type: "CREDIT", card_network: "Visa", card_issuer: "INTL HDQTRS-CENTER OWNED", card_issuing_country: "UNITEDSTATES", card_isin: "400000", card_extended_bin: null, card_exp_month: "01", card_exp_year: "50", card_holder_name: "joseph Doe", payment_checks: null, authentication_data: null, }, billing: null, }; const billing_with_newline = { address: { line1: "1467", line2: "Harrison Street\nApt 101", line3: "Harrison Street\nApt 101", city: "San Fransico\n city", state: "California", zip: "94122", country: "NL", first_name: "joseph", last_name: "Doe", }, phone: { number: "9123456789", country_code: "+91", }, }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "on_session", }, }, }, PaymentIntentOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["incrementalAuth"], value: "connector_2", }, }, Request: { currency: "USD", amount: 6000, authentication_type: "no_three_ds", customer_acceptance: null, setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, SessionToken: { Response: { status: 200, body: { session_token: [ { wallet_name: "apple_pay", connector: "cybersource", }, { wallet_name: "google_pay", connector: "cybersource", }, ], }, }, }, PaymentIntentWithShippingCost: { Request: { currency: "USD", shipping_cost: 50, }, Response: { status: 200, body: { status: "requires_payment_method", shipping_cost: 50, amount: 6000, }, }, }, PaymentConfirmWithShippingCost: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", shipping_cost: 50, amount_received: 6050, amount: 6000, net_amount: 6050, }, }, }, "3DSManualCapture": { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, "3DSAutoCapture": { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_customer_action", setup_future_usage: "on_session", payment_method_data: payment_method_data_3ds, }, }, }, No3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", payment_method: "card", attempt_count: 1, payment_method_data: payment_method_data_no3ds, }, }, }, No3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", billing: billing_with_newline, }, Response: { status: 200, body: { status: "succeeded", payment_method: "card", attempt_count: 1, payment_method_data: payment_method_data_no3ds, }, }, }, Capture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, amount_received: null, }, }, }, PartialCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "processing", amount: 6000, amount_capturable: 6000, amount_received: null, }, }, }, Void: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount: 6000, }, Response: { status: 200, body: { status: "pending", }, }, }, manualPaymentRefund: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount: 6000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured", code: "IR_14", }, }, }, }, manualPaymentPartialRefund: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount: 2000, }, Response: { status: 400, body: { error: { type: "invalid_request", message: "This Payment could not be refund because it has a status of processing. The expected state is succeeded, partially_captured", code: "IR_14", }, }, }, }, PartialRefund: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { amount: 2000, }, Response: { status: 200, body: { status: "pending", }, }, }, SyncRefund: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Response: { status: 200, body: { status: "pending", }, }, }, IncrementalAuth: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "requires_capture", amount: 6000, amount_capturable: 6000, amount_received: null, }, }, }, MandateSingleUse3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUse3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, MandateSingleUseNo3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateSingleUseNo3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUseNo3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, MandateMultiUseNo3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MandateMultiUse3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: multiUseMandateData, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, MITAutoCapture: getCustomExchange({ Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, ...commonConnectorDetails.card_pm.MITAutoCapture, }), MITManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: {}, Response: { status: 200, body: { status: "requires_capture", }, }, }, ZeroAuthMandate: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: singleUseMandateData, }, Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthPaymentIntent: { Request: { amount: 0, setup_future_usage: "off_session", currency: "USD", }, Response: { status: 200, body: { status: "requires_payment_method", setup_future_usage: "off_session", }, }, }, ZeroAuthConfirmPayment: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_type: "setup_mandate", payment_method: "card", payment_method_type: "credit", payment_method_data: { card: successfulNo3DSCardDetails, }, }, Response: { status: 200, body: { status: "succeeded", setup_future_usage: "off_session", }, }, }, SaveCardUseNo3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUse3DSAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulThreeDSTestCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, SaveCardUseNo3DSManualCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { specName: ["incrementalAuth"], value: "connector_2", }, }, Request: { payment_method: "card", payment_method_type: "debit", payment_method_data: { card: successfulNo3DSCardDetails, }, setup_future_usage: "off_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardConfirmAutoCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardConfirmManualCaptureOffSession: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { setup_future_usage: "off_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, SaveCardUseNo3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandateNo3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PaymentMethodIdMandateNo3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", mandate_data: null, customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, PaymentMethodIdMandate3DSAutoCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, currency: "USD", mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, PaymentMethodIdMandate3DSManualCapture: { Configs: { CONNECTOR_CREDENTIAL: { value: "connector_1", }, }, Request: { payment_method: "card", payment_method_data: { card: successfulThreeDSTestCardDetails, }, mandate_data: null, authentication_type: "three_ds", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_customer_action", }, }, }, }, pm_list: { PmListResponse: { PmListNull: { payment_methods: [], }, pmListDynamicFieldWithoutBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["cybersource"], }, ], required_fields: { "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: null, }, "billing.address.state": { required_field: "payment_method_data.billing.address.state", display_name: "state", field_type: "user_address_state", value: null, }, "billing.email": { required_field: "payment_method_data.billing.email", display_name: "email", field_type: "user_email_address", value: "hyperswitch_sdk_demo_id@gmail.com", }, "billing.address.zip": { required_field: "payment_method_data.billing.address.zip", display_name: "zip", field_type: "user_address_pincode", value: null, }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, "billing.address.line1": { required_field: "payment_method_data.billing.address.line1", display_name: "line1", field_type: "user_address_line1", value: null, }, "billing.address.city": { required_field: "payment_method_data.billing.address.city", display_name: "city", field_type: "user_address_city", value: null, }, }, }, ], }, ], }, pmListDynamicFieldWithBilling: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["cybersource"], }, ], required_fields: { "billing.address.city": { required_field: "payment_method_data.billing.address.city", display_name: "city", field_type: "user_address_city", value: "San Fransico", }, "billing.address.state": { required_field: "payment_method_data.billing.address.state", display_name: "state", field_type: "user_address_state", value: "CA", }, "billing.address.zip": { required_field: "payment_method_data.billing.address.zip", display_name: "zip", field_type: "user_address_pincode", value: "94122", }, "billing.address.country": { required_field: "payment_method_data.billing.address.country", display_name: "country", field_type: { user_address_country: { options: ["ALL"], }, }, value: "PL", }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "billing.email": { required_field: "payment_method_data.billing.email", display_name: "email", field_type: "user_email_address", value: "hyperswitch.example@gmail.com", }, "payment_method_data.card.card_cvc": { required_field: "payment_method_data.card.card_cvc", display_name: "card_cvc", field_type: "user_card_cvc", value: null, }, "billing.address.line1": { required_field: "payment_method_data.billing.address.line1", display_name: "line1", field_type: "user_address_line1", value: "1467", }, "payment_method_data.card.card_exp_month": { required_field: "payment_method_data.card.card_exp_month", display_name: "card_exp_month", field_type: "user_card_expiry_month", value: null, }, "payment_method_data.card.card_number": { required_field: "payment_method_data.card.card_number", display_name: "card_number", field_type: "user_card_number", value: null, }, "payment_method_data.card.card_exp_year": { required_field: "payment_method_data.card.card_exp_year", display_name: "card_exp_year", field_type: "user_card_expiry_year", value: null, }, }, }, ], }, ], }, pmListDynamicFieldWithNames: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["cybersource"], }, ], required_fields: { "billing.address.last_name": { required_field: "payment_method_data.billing.address.last_name", display_name: "card_holder_name", field_type: "user_full_name", value: "Doe", }, "billing.address.first_name": { required_field: "payment_method_data.billing.address.first_name", display_name: "card_holder_name", field_type: "user_full_name", value: "joseph", }, }, }, ], }, ], }, pmListDynamicFieldWithEmail: { payment_methods: [ { payment_method: "card", payment_method_types: [ { payment_method_type: "credit", card_networks: [ { eligible_connectors: ["cybersource"], }, ], required_fields: { "billing.email": { required_field: "payment_method_data.billing.email", display_name: "email", field_type: "user_email_address", value: "hyperswitch.example@gmail.com", }, }, }, ], }, ], }, }, }, };
6,728
8,705
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js
.js
import { customerAcceptance } from "./Commons"; const successfulNo3DSCardDetails = { card_number: "5204740000001002", card_exp_month: "10", card_exp_year: "50", card_holder_name: "Joseph Doe", card_cvc: "002", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, ZeroAuthMandate: { Response: { status: 501, body: { error: { type: "invalid_request", message: "Setup Mandate flow for Fiservemea is not implemented", code: "IR_00", }, }, }, }, SaveCardUseNo3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SaveCardUseNo3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "EUR", setup_future_usage: "on_session", customer_acceptance: customerAcceptance, }, Response: { status: 200, body: { status: "requires_capture", }, }, }, }, };
931
8,706
hyperswitch
cypress-tests/cypress/e2e/configs/Payment/Datatrans.js
.js
const successfulNo3DSCardDetails = { card_number: "4444090101010103", card_exp_month: "06", card_exp_year: "50", card_holder_name: "joseph Doe", card_cvc: "123", }; export const connectorDetails = { card_pm: { PaymentIntent: { Request: { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_payment_method", }, }, }, No3DSManualCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "requires_capture", }, }, }, No3DSAutoCapture: { Request: { payment_method: "card", payment_method_data: { card: successfulNo3DSCardDetails, }, currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", }, Response: { status: 200, body: { status: "succeeded", }, }, }, Capture: { Request: { amount_to_capture: 6000, }, Response: { status: 200, body: { status: "succeeded", amount: 6000, amount_capturable: 0, amount_received: 6000, }, }, }, PartialCapture: { Request: { amount_to_capture: 2000, }, Response: { status: 200, body: { status: "partially_captured", amount: 6000, amount_capturable: 0, amount_received: 2000, }, }, }, Void: { Request: {}, Response: { status: 200, body: { status: "cancelled", }, }, }, Refund: { Request: { amount: 6000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, PartialRefund: { Request: { amount: 2000, }, Response: { status: 200, body: { status: "succeeded", }, }, }, SyncRefund: { Response: { status: 200, body: { status: "succeeded", }, }, }, }, };
660
8,707