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-control-center | cypress/e2e/9-profile/profile.cy.js | .js | 0 | |
hyperswitch-control-center | cypress/e2e/1-auth/auth.cy.js | .js | import * as helper from "../../support/helper";
import SignInPage from "../../support/pages/auth/SignInPage";
import SignUpPage from "../../support/pages/auth/SignUpPage";
import ResetPasswordPage from "../../support/pages/auth/ResetPasswordPage";
import { reset } from "mixpanel-browser";
const signinPage = new SignIn... | 3,326 |
hyperswitch-control-center | cypress/e2e/5-analytics/PerformanceMonitor.cy.js | .js | 0 | |
hyperswitch-control-center | cypress/e2e/8-settings/users.cy.js | .js | import * as helper from "../../support/helper";
import HomePage from "../../support/pages/homepage/HomePage";
const homePage = new HomePage();
beforeEach(function () {
const email = helper.generateUniqueEmail();
cy.visit_signupPage();
cy.sign_up_with_email(email, Cypress.env("CYPRESS_PASSWORD"));
cy.url().sho... | 373 |
hyperswitch-control-center | cypress/e2e/4-connectors/connector.cy.js | .js | describe("connector", () => {
const password = Cypress.env("CYPRESS_PASSWORD");
const username = `cypress${Math.round(+new Date() / 1000)}@gmail.com`;
const getIframeBody = () => {
return cy
.get("iframe")
.its("0.contentDocument.body")
.should("not.be.empty")
.then(cy.wrap);
};
... | 2,565 |
hyperswitch-control-center | cypress/e2e/2-homepage/homepage.cy.js | .js | import * as helper from "../../support/helper";
import SignInPage from "../../support/pages/auth/SignInPage";
import SignUpPage from "../../support/pages/auth/SignUpPage";
const signinPage = new SignInPage();
const signupPage = new SignUpPage();
describe("Sign up", () => {
let email = "";
// check if the permiss... | 526 |
hyperswitch-control-center | cypress/e2e/7-developers/PaymentSettings.cy.js | .js | 0 | |
hyperswitch-control-center | cypress/e2e/6-workflow/PaymentRouting.cy.js | .js | import * as helper from "../../support/helper";
import SignInPage from "../../support/pages/auth/SignInPage";
import HomePage from "../../support/pages/homepage/HomePage";
import PaymentRouting from "../../support/pages/workflow/paymentRouting/PaymentRouting";
import DefaultFallback from "../../support/pages/workflow/p... | 1,710 |
hyperswitch-control-center | cypress/e2e/3-operations/paymentOperations.cy.js | .js | import * as helper from "../../support/helper";
import HomePage from "../../support/pages/homepage/HomePage";
import PaymentOperations from "../../support/pages/operations/PaymentOperations";
const homePage = new HomePage();
const paymentOperations = new PaymentOperations();
beforeEach(function () {
const email = h... | 2,469 |
hyperswitch-control-center | cypress/support/e2e.js | .js | // ***********************************************************
// This example support/e2e.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// auto... | 131 |
hyperswitch-control-center | cypress/support/permissions.js | .js | // Define roles and permissions for each section
export const rolePermissions = {
admin: {
operations: "write",
connectors: "write",
analytics: "read",
workflows: "write",
reconOps: "write",
reconReports: "write",
users: "write",
account: "write",
},
customer_support: {
operati... | 952 |
hyperswitch-control-center | cypress/support/helper.js | .js | module.exports = { generateUniqueEmail, generateDateTimeString };
function generateUniqueEmail() {
const email = `cypress+org_admin_${Math.floor(new Date().getTime() / 1000)}@test.com`;
return email;
}
function generateDateTimeString() {
const now = new Date();
return now
.toISOString()
.replace(/[-:.... | 95 |
hyperswitch-control-center | cypress/support/commands.js | .js | // ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... | 4,247 |
hyperswitch-control-center | cypress/support/pages/homepage/HomePage.js | .js | class HomePage {
// Onboarding
get enterMerchantName() {
return cy.get('[name="merchant_name"]');
}
get onboardingSubmitButton() {
return cy.get('[data-button-for="startExploring"]');
}
get orgDropdown() {
return cy.get();
}
get merchantDropdown() {
return cy.get();
}
get profile... | 290 |
hyperswitch-control-center | cypress/support/pages/workflow/paymentRouting/VolumeBasedConfiguration.js | .js | class VolumeBasedConfiguration {
get connectorDropdown() {
return cy.get(`[data-value="addProcessors"]`);
}
}
export default VolumeBasedConfiguration;
| 34 |
hyperswitch-control-center | cypress/support/pages/workflow/paymentRouting/DefaultFallback.js | .js | class DefaultFallback {
get defaultFallbackList() {
return cy.get('[class="flex flex-col w-full"]');
}
get saveChangesButton() {
return cy.get('data-button-for="saveChanges"');
}
}
export default DefaultFallback;
| 55 |
hyperswitch-control-center | cypress/support/pages/workflow/paymentRouting/PaymentRouting.js | .js | class PaymentRouting {
//
get volumeBasedRoutingSetupButton() {
return cy.get('[data-button-for="setup"]').eq(0);
}
get volumeBasedRoutingHeader() {
return cy.get('[class="flex items-center gap-4"]');
}
get ruleBasedRoutingSetupButton() {
return cy.get('[data-button-for="setup"]').eq(1);
}
... | 109 |
hyperswitch-control-center | cypress/support/pages/operations/PaymentOperations.js | .js | class PaymentOperations {
get searchBox() {
return cy.get(`[name="name"]`);
}
get dateSelector() {
return cy.get(`[data-testid="date-range-selector"]`);
}
get viewDropdown() {
return cy.get(`[class="flex h-fit rounded-lg hover:bg-opacity-80"]`);
}
get addFilters() {
return cy.get(`[data... | 144 |
hyperswitch-control-center | cypress/support/pages/auth/ResetPasswordPage.js | .js | class ResetPasswordPage {
get createPassword() {
return cy.get('[name="create_password"]');
}
get confirmPassword() {
return cy.get('[data-testid="comfirm_password"]').children().eq(1);
}
get eyeIcon() {
return cy.get('[data-icon="eye-slash"]');
}
get confirmButton() {
return cy.get('[d... | 137 |
hyperswitch-control-center | cypress/support/pages/auth/SignUpPage.js | .js | class SignUpPage {
get headerText() {
return cy.get('[data-testid="card-header"]');
}
get signInLink() {
return cy.get('[data-testid="card-subtitle"]');
}
get emailInput() {
return cy.get('[data-testid="email"]').children().first();
}
get passwordInput() {
return cy.get('[data-testid="p... | 195 |
hyperswitch-control-center | cypress/support/pages/auth/SignInPage.js | .js | class SignInPage {
get emailInput() {
return cy.get('[data-testid="email"]');
}
get passwordInput() {
return cy.get('[data-testid="password"]');
}
get signinButton() {
return cy.get('[data-button-for="continue"]');
}
get signUpLink() {
return cy.get("#card-subtitle");
}
get headerT... | 432 |
hyperswitch-web | Dockerfile | none | FROM node:20-alpine
# Add build essentials
RUN apk add --no-cache make gcc g++ python3
WORKDIR /usr/src/app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --ignore-scripts
# Copy the rest of the application code
COPY . .
# First, build ReScript code and wait for it to complete
R... | 144 |
hyperswitch-web | package.json | .json | {
"name": "orca-payment-page",
"version": "0.121.2",
"main": "index.js",
"private": true,
"dependencies": {
"@glennsl/rescript-fetch": "^0.2.0",
"@rescript/core": "^0.7.0",
"@rescript/react": "^0.12.1",
"@sentry/react": "^9.9.0",
"@sentry/webpack-plugin": "^3.2.2",
"react": "^18.2.0",
... | 1,528 |
hyperswitch-web | CHANGELOG.md | .md | ## [0.121.2](https://github.com/juspay/hyperswitch-web/compare/v0.121.1...v0.121.2) (2025-03-28)
### Bug Fixes
* bancontact confirm payload ([#976](https://github.com/juspay/hyperswitch-web/issues/976)) ([bd5b5b1](https://github.com/juspay/hyperswitch-web/commit/bd5b5b1376aac14422af989bebe9c976ce3b4b05))
## [0.121.... | 68,030 |
hyperswitch-web | postcss.config.js | .js | module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
| 22 |
hyperswitch-web | SECURITY.md | .md | # Security Policy
## Reporting a security issue
The hyperswitch project team welcomes security reports and is committed to
providing prompt attention to security issues.
Security issues should be reported privately via the
[advisories page on GitHub][report-vulnerability] or by email at
[hyperswitch@juspay.in](mailto... | 117 |
hyperswitch-web | LICENSE | none | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 2,272 |
hyperswitch-web | rescript.json | .json | {
"$schema": "https://raw.githubusercontent.com/rescript-lang/rescript-compiler/master/docs/docson/build-schema.json",
"name": "orca-payment-page",
"jsx": {
"version": 4,
"mode": "classic"
},
"bsc-flags": ["-bs-super-errors", "-open RescriptCore"],
"sources": {
"dir": "src",
"subdirs": true
... | 174 |
hyperswitch-web | webpack.dev.js | .js | const path = require("path");
require("dotenv").config();
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const sdkEnv = process.env.sdkEnv ?? "local";
const endpointMap = {
prod: "https://api.hyperswitch.io/payments",
sandbox: "https://sandbox.hyperswitch.io/payments",
... | 338 |
hyperswitch-web | webpack.common.js | .js | const webpack = require("webpack");
const path = require("path");
const dotenv = require("dotenv").config();
const tailwindcss = require("tailwindcss");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plu... | 1,592 |
hyperswitch-web | tailwind.config.js | .js | const plugin = require("tailwindcss/plugin");
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
darkMode: "class",
content: ["./src/**/*.js"],
theme: {
fontFamily: {
"ibm-plex": '"IBM Plex Sans"',
"ibm-plex-mono": '"IBM Plex Mono"',
"fira-code": '"Fira Code"',
... | 2,784 |
hyperswitch-web | README.md | .md | <p align="center">
<img src="./docs/imgs/hyperswitch-logo-dark.svg#gh-dark-mode-only" alt="Hyperswitch-Logo" width="40%" />
<img src="./docs/imgs/hyperswitch-logo-light.svg#gh-light-mode-only" alt="Hyperswitch-Logo" width="40%" />
</p>
<h1 align="center">Hyperswitch Unified Checkout</h1>
<div align="center" >
<i>... | 3,825 |
hyperswitch-web | index.js | .js | export { app as default } from "./src/Index.bs";
| 12 |
hyperswitch-web | package-lock.json | .json | {
"name": "orca-payment-page",
"version": "0.121.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "orca-payment-page",
"version": "0.121.2",
"hasInstallScript": true,
"dependencies": {
"@glennsl/rescript-fetch": "^0.2.0",
"@rescript/core": "^0... | 244,239 |
hyperswitch-web | Hyperswitch-React-Demo-App/Dockerfile | none |
FROM node:18-alpine
WORKDIR /usr/src/app
COPY package*.json ./
COPY . .
RUN yarn install
RUN yarn build
CMD [ "yarn" ,"start-server" ]
| 45 |
hyperswitch-web | Hyperswitch-React-Demo-App/promptScript.js | .js | const fs = require("fs");
const prompt = require("prompt-sync")({ sigint: true });
const envPath = "./.env";
const obj = {
HYPERSWITCH_PUBLISHABLE_KEY: "Publishable Key",
HYPERSWITCH_SECRET_KEY: "Secret Key",
HYPERSWITCH_SERVER_URL:
"Self-hosted Hyperswitch Server URL (URL of your Hyperswitch Backend)",
H... | 415 |
hyperswitch-web | Hyperswitch-React-Demo-App/package.json | .json | {
"name": "react-cra",
"version": "0.1.0",
"private": true,
"dependencies": {
"@juspay-tech/hyper-js": "^1.6.0",
"@juspay-tech/react-hyper-js": "^1.0.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.2",
"body-parser": ... | 614 |
hyperswitch-web | Hyperswitch-React-Demo-App/server.js | .js | const fetch = require("node-fetch");
const express = require("express");
const { resolve } = require("path");
const dotenv = require("dotenv");
dotenv.config({ path: "./.env" });
const app = express();
const PORT = 5252;
function getUrl(envVar, selfHostedValue) {
return process.env[envVar] === selfHostedValue ? "" ... | 964 |
hyperswitch-web | Hyperswitch-React-Demo-App/webpack.dev.js | .js | const path = require("path");
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const devServer = {
static: {
directory: path.join(__dirname, "dist"),
},
hot: true,
host: "0.0.0.0",
port: 9060,
historyApiFallback: true,
proxy: [
{
context: ["/payment... | 172 |
hyperswitch-web | Hyperswitch-React-Demo-App/webpack.common.js | .js | const path = require("path");
const webpack = require("webpack");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const { BundleAnalyzerPlu... | 498 |
hyperswitch-web | Hyperswitch-React-Demo-App/README.md | .md | # Accept a payment examples in React for Payment Element
## How to run locally
This is the React client for the sample and runs independently of the server.
Running a backend server is a requirement and a dependency for this React front-end to work. See the README in the root of the project for more details.
To run ... | 519 |
hyperswitch-web | Hyperswitch-React-Demo-App/Makefile | none | NS ?= juspaydotin
VERSION ?= v1.0.4
IMAGE_NAME ?= hyperswitch-web
BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
CONTAINER_NAME ?= hyperswitch-web
CONTAINER_INSTANCE ?= default
SOURCE_COMMIT := $(shell git rev-parse HEAD)
RUN_TEST ?= false
.PHONY: build push shell run start stop rm release
build: Dockerfile
$... | 236 |
hyperswitch-web | Hyperswitch-React-Demo-App/public/_redirects | none | /* /index.html 200 | 10 |
hyperswitch-web | Hyperswitch-React-Demo-App/public/playgroundIndex.html | .html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="/orca/elements/favicon.ico" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="theme-color" content="#000000" />
<link href="https://fonts.googleapis.com/css2?f... | 562 |
hyperswitch-web | Hyperswitch-React-Demo-App/public/manifest.json | .json | {
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
... | 186 |
hyperswitch-web | Hyperswitch-React-Demo-App/public/assets/hyperswitchLogo.svg | .svg | <svg viewBox="0 0 36 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_90_5870)">
<path d="M26.3741 0H8.32737C3.72829 0 0 3.65051 0 8.15364C0 12.6568 3.72829 16.3073 8.32737 16.3073H26.3741C30.9732 16.3073 34.7015 12.6568 34.7015 8.15364C34.7015 3.65051 30.9732 0 26.3741 0Z" fill="#0070FF"/>
... | 964 |
hyperswitch-web | Hyperswitch-React-Demo-App/public/assets/Successsuccess.svg | .svg | <svg width="152" height="152" viewBox="0 0 152 152" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse opacity="0.3" cx="79.0397" cy="72.96" rx="54.72" ry="54.72" fill="#19A672"/>
<path d="M79.0403 42.5604C95.8297 42.5604 109.44 56.1709 109.44 72.9604C109.44 89.7498 95.8297 103.36 79.0403 103.36C62.2508 103.36 48... | 794 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/App.css | .css | @import url('https://fonts.googleapis.com/css?family=Raleway&display=swap');
:root {
--light-grey: #F6F9FC;
--dark-terminal-color: #0A2540;
--accent-color: #635BFF;
--radius: 3px;
}
body {
padding: 20px;
font-family: 'Raleway';
display: flex;
justify-content: center;
font-size: 1.2em;
color: var(-... | 505 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/Cart.js | .js | import React from "react";
import logo from "../public/assets/hyperswitchLogo.svg";
import shirt from "../public/assets/shirt.png";
import cap from "../public/assets/cap.png";
function Cart() {
return (
<>
<div className="cart">
<div className="titleContainer">
<div className="title">
... | 503 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/Completion.js | .js | import React from "react";
import "./index.css";
import "./App.css";
import success from "../public/assets/Successsuccess.svg";
function Completion(props) {
return (
<>
<div className="ConfirmContainer">
<div>
<img src={success} width="150px" height="110px" />
</div>
<div ... | 175 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/CheckoutForm.js | .js | import { PaymentElement } from "@juspay-tech/react-hyper-js";
import Cart from "./Cart";
import { useState, useEffect } from "react";
import { useHyper, useElements } from "@juspay-tech/react-hyper-js";
import { useNavigate } from "react-router-dom";
import React from "react";
import Completion from "./Completion";
imp... | 925 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/Payment.js | .js | /* eslint-disable no-undef */
import { useEffect, useState } from "react";
import React from "react";
import { HyperElements } from "@juspay-tech/react-hyper-js";
import CheckoutForm from "./CheckoutForm";
function Payment() {
const [hyperPromise, setHyperPromise] = useState(null);
const [clientSecret, setClientSe... | 684 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/logo.svg | .svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6... | 2,532 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/index.js | .js | import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("app")
);
| 50 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/App.js | .js | import "./App.css";
import Payment from "./Payment";
import Completion from "./Completion";
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
function App() {
return (
<main>
<BrowserRouter>
<Routes>
<Route path="/" element={<Payment />} />
... | 85 |
hyperswitch-web | Hyperswitch-React-Demo-App/src/index.css | .css | @import url("https://fonts.googleapis.com/css?family=Raleway&display=swap");
body {
font-family: "Raleway";
display: flex;
justify-content: center;
font-size: 1.2em;
color: var(--dark-terminal-color);
}
main{
display: flex;
flex-direction: column;
justify-content: center;
}
.heading{
color:#454141a... | 1,731 |
hyperswitch-web | docs/SECURITY.md | .md | # Security Policy
## Reporting a security issue
The hyperswitch project team welcomes security reports and is committed to
providing prompt attention to security issues.
Security issues should be reported privately via the
[advisories page on GitHub][report-vulnerability] or by email at
[hyperswitch@juspay.in](mailto... | 116 |
hyperswitch-web | docs/CODE_OF_CONDUCT.md | .md | # Code of Conduct
This project adheres to React Code of Conduct
[React Code of Conduct](https://github.com/facebook/react/blob/main/CODE_OF_CONDUCT.md).
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and ou... | 640 |
hyperswitch-web | docs/CONTRIBUTOR_LICENSE_AGREEMENT.md | .md | # Contributor License Agreement
You accept and agree to the following terms and conditions for Your present and
future Contributions submitted to Juspay Technologies Private Limited, Except
for the license granted herein to Juspay Technologies Private Limited and
recipients of software distributed by Juspay Technologi... | 1,363 |
hyperswitch-web | docs/imgs/get-api-keys.svg | .svg | <svg width="280" height="42" viewBox="0 0 280 42" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="280" height="42" rx="4" fill="#006DF9"/>
<path d="M91.1364 19.1094C91.0668 18.8674 90.969 18.6536 90.843 18.468C90.7171 18.2791 90.563 18.12 90.3807 17.9908C90.2017 17.8582 89.9962 17.7571 89.7642 17.6875C89.5... | 8,274 |
hyperswitch-web | docs/imgs/hyperswitch-logo-dark.svg | .svg | <svg width="766" height="100" viewBox="0 0 766 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1969_1952)">
<path d="M370.801 53.4399C370.801 70.0799 360.581 79.9999 346.441 79.9999C338.621 79.9999 331.811 76.7899 328.701 71.4799V99.0399H317.771V27.6899H327.791L328.691 35.5099C331.801 30.1... | 4,641 |
hyperswitch-web | docs/imgs/hyperswitch-logo-light.svg | .svg | <svg width="766" height="100" viewBox="0 0 766 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1969_1952)">
<path d="M370.801 53.4399C370.801 70.0799 360.581 79.9999 346.441 79.9999C338.621 79.9999 331.811 76.7899 328.701 71.4799V99.0399H317.771V27.6899H327.791L328.691 35.5099C331.801 30.1... | 4,696 |
hyperswitch-web | cypress-tests/readme.md | .md | <h1 align="center">Hyperswitch SDK Web Testing</h1>
## Quick Start Locally
Steps to get started with Hyperswitch-web sdk testing locally:
1. Set up hyperswitch web following the [Docs](https://github.com/juspay/hyperswitch-web?tab=readme-ov-file#hyperswitch-unified-checkout).
2. Now that you have three terminals op... | 423 |
hyperswitch-web | cypress-tests/tsconfig.json | .json | {
"compilerOptions": {
"baseUrl": ".",
"target": "ES2022",
"lib": ["ES2015", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts", "./cypress.d.ts"]
} | 67 |
hyperswitch-web | cypress-tests/package.json | .json | {
"name": "cypress-tests",
"version": "1.0.0",
"description": "Test cases in cypress",
"main": "cypress.config.js",
"scripts": {
"lint": "./node_modules/.bin/tslint -c tslint.json -p cypress/**/*.ts -t stylish",
"start": "cypress open",
"test": "cypress run"
},
"repository": {
"type": "git... | 197 |
hyperswitch-web | cypress-tests/cypress.config.js | .js | const { defineConfig } = require("cypress");
module.exports = defineConfig({
projectId: "6r9ayw",
chromeWebSecurity: false,
e2e: {
baseUrl: "http://localhost:9050",
},
retries: { runMode: 1, openMode: 1 },
}); | 72 |
hyperswitch-web | cypress-tests/cypress.env.json | .json | {
"HYPERSWITCH_PUBLISHABLE_KEY": "",
"HYPERSWITCH_SECRET_KEY": ""
} | 26 |
hyperswitch-web | cypress-tests/package-lock.json | .json | {
"name": "cypress-tests",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cypress-tests",
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
"cypress": "^13.13.2",
"cypress-iframe": "^1.0.1",
"typescript": "^... | 13,289 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/weChatPay-flow-e2e-test.cy.js | .js | // NOTE: this test is for we chat QR flow, please ensure we chat is enabled in stripe connector on dashboard
describe("We Chat payment flow test", () => {
let customerData;
let paymentMethodsData;
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.wrap(
Cypress.automation("remote:debugger:pro... | 412 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/affirm-flow-e2e-test.cy.js | .js | import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("affirm payment flow test", () => {
let customerData;
let paymentMethodsData;
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.wrap(
Cypress.automation("remote:debugger:protocol", {
command: "Network.clearBrowserC... | 362 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/bluesnap-3DS-test.cy.js | .js | //pay_gpmsaQ9AIL3MH78HN7gJ_secret_xlVSaOqXCtqRy4QjUKpY
const request = {
currency: "USD",
amount: 6500,
authentication_type: "three_ds",
description: "Joseph First Crypto",
email: "hyperswitch_sdk_demo_id@gmail.com",
connector_metadata: {
noon: {
order_category: "applepay",
},
},
metadata:... | 1,228 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/saved-card-3DS-test.cy.js | .js | /*
import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("Card payment flow test", () => {
let customerData;
let publishableKey = "pk_snd_3b33cd9404234113804aa1accaabe22f";
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.hardReload();
cy.fixture("testCustomer").then((custome... | 1,127 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/api-call-test.cy.js | .js | const request = {
currency: "USD",
amount: 6500,
authentication_type: "three_ds",
description: "Joseph First Crypto",
email: "hyperswitch_sdk_demo_id@gmail.com",
connector_metadata: {
noon: {
order_category: "applepay",
},
},
metadata: {
udf1: "value1",
new_customer: "true",
lo... | 1,193 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/stripe-3DS-test.cy.js | .js | //pay_gpmsaQ9AIL3MH78HN7gJ_secret_xlVSaOqXCtqRy4QjUKpY
const request = {
currency: "USD",
amount: 6500,
authentication_type: "three_ds",
description: "Joseph First Crypto",
email: "hyperswitch_sdk_demo_id@gmail.com",
connector_metadata: {
noon: {
order_category: "applepay",
},
},
metadata:... | 1,172 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/card-3DS-flow-e2e-test.cy.js | .js | import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("Card payment flow test", () => {
let customerData;
let publishableKey = "pk_snd_3b33cd9404234113804aa1accaabe22f";
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.hardReload();
cy.fixture("testCustomer").then((customer) ... | 456 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/saved-card-flow-e2e-test.cy.js | .js | describe("Card Payment Flow Test", () => {
let customerData;
const iframeSelector = "#orca-payment-element-iframeRef-orca-elements-payment-element-payment-element";
const thankYouMessage = "Thanks for your order!";
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.hardReload();
cy.fixture("... | 347 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/confirm_payload.json | .json | {
"client_secret": "pay_nTQ5NfqEVxwKC0GNPgE5_secret_00PSTueBCTVNWmJo3hG1",
"return_url": "http://localhost:9060/completion",
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4000000000003220",
"card_exp_month": "04",
"card_exp_year": "2024",
"card_holder_n... | 419 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/alipay-flow-e2e-test.cy.js | .js | import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("Ali Pay payment flow test", () => {
let customerData;
let paymentMethodsData;
beforeEach(() => {
// cy.visit("http://localhost:9060", { cache: false });
cy.visit("http://localhost:9060");
cy.wrap(
Cypress.automation("remote:... | 376 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/xxx..cy.js | .js | const enterValueInIframeIfExsist = (selector, value) => {
// cy.iframe(iframeSelector)
// .find(selector)
// .then(($input) => {
// if ($input.length > 0) {
// cy.wrap($input).type(value);
// // You can continue with other actions or assertions here
// } else {
// cy.log(
... | 386 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/card-backup.cy.js | .js | /*import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("Card payment flow test", () => {
let customerData;
let publishableKey = "pk_snd_3b33cd9404234113804aa1accaabe22f";
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.hardReload();
cy.fixture("testCustomer").then((customer... | 1,404 |
hyperswitch-web | cypress-tests/cypress/js-e2e-test-cases-to-refer/klarna-flow-e2e-test.cy.js | .js | import * as testIds from "../../src/Utilities/TestUtils.bs";
describe("klarna payment flow test", () => {
let customerData;
let paymentMethodsData;
beforeEach(() => {
cy.visit("http://localhost:9060");
cy.wrap(
Cypress.automation("remote:debugger:protocol", {
command: "Network.clearBrowserC... | 525 |
hyperswitch-web | cypress-tests/cypress/e2e/card-number-validation-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL } from "../support/utils";
import { createPaymentBody } from "../support/utils";
import { changeObjectKeyValue } from "../support/utils";
import { stripeCards } from "cypress/support/cards";
describe("Card number validation test", ()... | 1,826 |
hyperswitch-web | cypress-tests/cypress/e2e/saved-card-flow-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL } from "../support/utils";
import { createPaymentBody } from "../support/utils";
import { changeObjectKeyValue } from "../support/utils";
describe("Card payment flow test", () => {
const publishableKey = Cypress.env('HYPERSWITCH_P... | 442 |
hyperswitch-web | cypress-tests/cypress/e2e/stripe-3DS-card-flow-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL } from "../support/utils";
import { createPaymentBody } from "../support/utils";
import { changeObjectKeyValue } from "../support/utils";
import { stripeCards } from "cypress/support/cards";
describe("Card payment flow test", () => {... | 469 |
hyperswitch-web | cypress-tests/cypress/e2e/stripe-manual-capture-card-flow-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL } from "../support/utils";
import { createPaymentBody } from "../support/utils";
import { changeObjectKeyValue } from "../support/utils";
import { stripeCards } from "cypress/support/cards";
describe("Card payment flow test", () => {... | 395 |
hyperswitch-web | cypress-tests/cypress/e2e/stripe-no-3DS-card-flow-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL } from "../support/utils";
import { createPaymentBody } from "../support/utils";
import { changeObjectKeyValue } from "../support/utils";
import { stripeCards } from "cypress/support/cards";
describe("Card payment flow test", () => {... | 900 |
hyperswitch-web | cypress-tests/cypress/e2e/external-3DS-netcetera-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL, netceteraChallengeTestCard, createPaymentBody, changeObjectKeyValue, connectorProfileIdMapping, connectorEnum } from "../support/utils";
describe("External 3DS using Netcetera Checks", () => {
let getIframeBody: () => Cypress.Cha... | 802 |
hyperswitch-web | cypress-tests/cypress/e2e/cvc-checks-e2e-test.cy.ts | .ts | import * as testIds from "../../../src/Utilities/TestUtils.bs";
import { getClientURL, amexTestCard, visaTestCard, createPaymentBody } from "../support/utils";
describe("Card CVC Checks", () => {
let getIframeBody: () => Cypress.Chainable<JQuery<HTMLBodyElement>>;
const publishableKey = Cypress.env('HYPERSWITC... | 1,054 |
hyperswitch-web | cypress-tests/cypress/support/utils.ts | .ts | export const CLIENT_BASE_URL = "http://localhost:9060"
export const getClientURL = (clientSecret, publishableKey) => {
return `${CLIENT_BASE_URL}?isCypressTestMode=true&clientSecret=${clientSecret}&publishableKey=${publishableKey}`;
}
export const enum connectorEnum {
TRUSTPAY,
ADYEN,
STRIPE,
NETCETERA
}
... | 1,208 |
hyperswitch-web | cypress-tests/cypress/support/cards.ts | .ts | export type cardDetails = {
cardNo: string,
cardScheme: string,
cvc: string,
card_exp_month: string,
card_exp_year: string,
}
type connectorCard = {
successCard: cardDetails
threeDSCard: cardDetails
invalidCard: cardDetails
}
export const stripeCards = {
successCard: {
... | 533 |
hyperswitch-web | cypress-tests/cypress/support/e2e.ts | .ts | // ***********************************************************
// This example support/e2e.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// auto... | 122 |
hyperswitch-web | cypress-tests/cypress/support/commands.ts | .ts | // ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... | 1,345 |
hyperswitch-web | cypress-tests/cypress/support/types.ts | .ts |
export { }; // indicate that file is a module
export type CustomerData = {
cardNo: string
cardExpiry: string
cardCVV: string
cardHolderName: string
email: string
address: string
city: string
country: string
state: string
postalCode: string
threeDSCardNo: string
}
declare g... | 262 |
hyperswitch-web | cypress-tests/cypress/fixtures/paymentMethods.json | .json | {
"card":"Card",
"klarna":"Klarna",
"affirm":"Affirm",
"aliPay":"Ali Pay",
"weChatPay":"WeChat"
}
| 44 |
hyperswitch-web | cypress-tests/cypress/fixtures/testCustomer.json | .json | {
"cardNo": "4242 4242 4242 4242",
"threeDSCardNo": "4000000000003220",
"cardExpiry": "04/24",
"cardCVV": "424",
"billingName": "John Doe",
"cardHolderName": "John Doe",
"email": "arun@gmail.com",
"address": "123 Main Street Apt 4B",
"city": "New York",
"country": "United States",
"state": "New Yo... | 168 |
hyperswitch-web | public/fullscreenIndexTemplate.html | .html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="/orca/elements/favicon.ico" /> -->
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes"
/>
<meta name="theme-color" content="#000000" />
<... | 580 |
hyperswitch-web | public/build.html | .html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="/orca/elements/favicon.ico" /> -->
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes"
/>
<meta name="theme-color" content="#000000" />
<... | 861 |
hyperswitch-web | public/robots.txt | .txt | # https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
| 20 |
hyperswitch-web | public/icons/orca.svg | .svg | <?xml version="1.0" encoding="UTF-8"?>
<!--
Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT
License)
-->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
<symbol id="visa" viewBox="0 0 780 ... | 318,883 |
hyperswitch-web | aws/hyperswitch_web_aws_cleanup_setup.sh | .sh | #!/bin/bash
command_discovery() {
type $1 > /dev/null 2> /dev/null
if [[ $? != 0 ]]; then
echo "\`$1\` command not found"
exit 1
fi
}
yes_or_no() {
read response < /dev/tty
case $response in
[Yy]* ) return 0 ;;
[Nn]* ) return 1 ;;
* ) return 1 ;;
esac
}
command_disco... | 694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.