repo
stringclasses
4 values
file_path
stringlengths
6
193
extension
stringclasses
30 values
content
stringlengths
0
5.21M
token_count
int64
0
3.8M
hyperswitch
postman/collection-dir/bankofamerica/Flow Testcases/QuickStart/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": ...
634
hyperswitch
postman/collection-dir/bankofamerica/Flow Testcases/QuickStart/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(...
391
hyperswitch
postman/collection-dir/bankofamerica/Flow Testcases/QuickStart/Merchant Account - Create/response.json
.json
[]
1
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Retrieve/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": ...
233
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Retrieve/event.test.js
.js
// Validate status 2xx pm.test("[GET]::/accounts/:id - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test("[GET]::/accounts/:id - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.in...
302
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Retrieve/response.json
.json
[]
1
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": ...
264
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....
301
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - List/response.json
.json
[]
1
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": ...
634
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(...
530
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/response.json
.json
[]
1
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Create/event.prerequest.js
.js
0
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": ...
691
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...
307
hyperswitch
postman/collection-dir/bankofamerica/MerchantAccounts/Merchant Account - Update/response.json
.json
[]
1
hyperswitch
postman/collection-dir/bankofamerica/Health check/New Request/request.json
.json
{ "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/health", "host": ["{{baseUrl}}"], "path": ["health"] } }
47
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
hyperswitch
postman/collection-dir/bankofamerica/Health check/New Request/response.json
.json
[]
1
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-...
284
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 () ...
319
hyperswitch
postman/collection-dir/bankofamerica/API Key/Update API Key/response.json
.json
[]
1
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-T...
211
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...
308
hyperswitch
postman/collection-dir/bankofamerica/API Key/List API Keys/response.json
.json
[]
1
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-...
275
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...
306
hyperswitch
postman/collection-dir/bankofamerica/API Key/Create API Key/response.json
.json
[]
1
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-T...
238
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 () { ...
319
hyperswitch
postman/collection-dir/bankofamerica/API Key/Retrieve API Key/response.json
.json
[]
1
hyperswitch
docker/wasm-build.Dockerfile
.dockerfile
FROM rust:latest as builder ARG FEATURES="" ARG VERSION_FEATURE_SET="v1" RUN apt-get update \ && apt-get install -y clang libssl-dev pkg-config ENV CARGO_INCREMENTAL=0 # Allow more retries for network requests in cargo (downloading crates) and # rustup (installing toolchains). This should help to reduce flaky CI...
201
hyperswitch
docker/web.Dockerfile
.dockerfile
FROM node:lts RUN npm install concurrently -g WORKDIR /hyperswitch-web RUN git clone https://github.com/juspay/hyperswitch-web --depth 1 . RUN npm install EXPOSE 9050 EXPOSE 5252 EXPOSE 9060 CMD concurrently "npm run re:build && npm run start" "npm run start:playground"
89
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
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> <filt...
1,366
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...
450
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 reportNam...
571
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 d...
264
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 managemen...
4,280
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....
63,894
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((...
2,061
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(...
1,196
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 glob...
122
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((...
921
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 da...
5,062
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 p...
390
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")...
1,104
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")...
1,635
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").t...
1,770
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 prev...
1,082
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("getG...
1,214
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 ...
373
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("getGloba...
3,441
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(...
1,503
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")...
792
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) => { gl...
417
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 c...
4,554
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("getGlo...
4,113
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) =>...
315
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 t...
1,268
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 pr...
532
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...
155
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((...
1,381
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", () => { co...
1,004
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("getGlobalSt...
910
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) ...
9,154
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)...
1,826
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").t...
1,690
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 s...
2,216
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 s...
296
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...
155
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...
841
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 glob...
122
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("fl...
134
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...
1,008
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 gl...
609
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 fai...
1,610
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, createPaymentBod...
5,176
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 ...
1,327
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...
1,672
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", () => { // Mak...
3,449
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 s...
2,811
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", globalSt...
113
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", globalSt...
224
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 = { c...
2,899
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", ...
1,024
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:...
5,980
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 successf...
9,999
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"; impo...
2,542
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:...
1,679
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",...
1,706
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_mo...
2,616
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 = { car...
6,295
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_tra...
399
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_mont...
4,467
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", ci...
3,439
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:...
3,879
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_nu...
1,703
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", ca...
5,705
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 = { c...
4,865