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.
This demo application uses the following tech-stack :
Frontend : React
with JavaScript
Backend : Node
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!
-
Add your keys :
- Navigate to
src/App.jsx
and replace the placeholderHYPERSWITCH_PUBLISHABLE_KEY
with your publishable key. - Navigate to
./server.js
and replace the placeholderHYPERSWITCH_API_KEY
with your API key.
- Navigate to
-
Install the dependencies / build the server :
npm install
- Run the server :
npm run start-server
Runs the backend server in the development mode.
- Run the client :
npm run start-client
Now, you can navigate to http://localhost:3000 to access the checkout page in your browser.