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 : HTML + CSS 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
public/script.jsand replace the placeholderHYPERSWITCH_PUBLISHABLE_KEYwith your publishable key. - Navigate to
server.jsand replace the placeholderHYPERSWITCH_API_KEYwith your API key.
- Navigate to
-
Install the dependencies / build the server :
npm install
- Run the server :
npm run start
- The sample app will now be accessible here : http://localhost:4242/index.html.