Skip to content

NarsGNA/hyperswitch-react-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperswitch React + Node Integration

Build a simple checkout web-app to collect payment details and make a test payment. Included are some basic build and run scripts you can use to run the demo application.

Introduction

This demo application uses the following tech-stack :

Frontend : React with JavaScript

Backend : Node

Prerequisites

Before running the demo app, please make sure to activate your Hyperswitch secret keys (API Key and Publishable Key) in your Hyperswitch Dashboard.

Don't have a Hyperswitch account? Sign up here!

Running the sample

  1. Add your keys :

    • Navigate to src/App.jsx and replace the placeholder HYPERSWITCH_PUBLISHABLE_KEY with your publishable key.
    • Navigate to ./server.js and replace the placeholder HYPERSWITCH_API_KEY with your API key.
  2. Install the dependencies / build the server :

npm install
  1. Run the server :
npm run start-server

Runs the backend server in the development mode.

  1. Run the client :
npm run start-client

Now, you can navigate to http://localhost:3000 to access the checkout page in your browser.

About

A simple integration app with React frontend and Node.js backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.5%
  • CSS 37.6%
  • HTML 12.9%