Skip to content

kanikabansal08/embeddable-test-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payments Control Center – Test Application

Overview

This project is a minimal demo that embeds the Hyperswitch Control Center (Connector Configuration module) inside a simple React dashboard shell.
It uses:

  • React (Create React App)
  • Node/Express backend (server.js)
  • hyperswitch-control-center-embedded for the embedded UI

Prerequisites

  • Node.js (v16+ recommended)
  • npm

Install dependencies

npm install

Configure Hyperswitch credentials

Edit server.js and set your own credentials in the token endpoint call:

headers: {
  "api-key": "YOUR_API_KEY_HERE",
  "x-profile-id": "YOUR_PROFILE_ID_HERE",
  "Content-Type": "application/json",
}

The backend exposes:

GET http://localhost:4000/embedded/hyperswitch

Start backend and frontend

In one terminal (backend):

npm run server

In another terminal (frontend):

npm start

Then open http://localhost:5000 in your browser.

How it works

  • server.js calls the Hyperswitch embedded token API using your API key + profile ID and returns the token.
  • src/App.js fetches that token, initializes Hyperswitch with loadHyperswitch, and renders ConnectorConfiguration inside a simple dashboard layout.

About

A demo dashboard to configure and test HS embedded components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors