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 TypeScript
& NextJs
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/pages/index.tsx
and replace the placeholderPUBLISHABLE_KEY
with your publishable key. - Navigate to
./server.js
and replace the placeholderAPI_KEY
with your API key.
- Navigate to
-
Install the dependencies / build the server :
npm install
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.