Build a simple checkout web-app to collect payment details and make a dummy 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 : Java
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.jsxand replace the placeholderHYPERSWITCH_PUBLISHABLE_KEYwith your publishable key. - Navigate to
src/main/java/server.javaand replace the placeholderHYPERSWITCH_API_KEYwith your API key.
- Navigate to
-
Install the dependencies / build the server :
npm install
mvn package
- 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.