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 :
- Create a
.env
file in the root directory. - Copy/paste the values in
.env.sample
and add you keys in the respectable area.
- Create a
-
Install the dependencies :
npm install
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 in your browser to see the result.
You can start editing the page by modifying src/app/page.tsx
. The page auto-updates as you save the file.