A simple app to demo html integration of Hyperswitch
- Build the server
npm install or yarn
- Provide valid Api key in server.js and Publishable key in checkout.js. You can create your keys using the Hyperswitch dashboard. https://app.hyperswitch.io/
//in server.js
const hyper = require("@juspay-tech/hyperswitch-node")("api_key");
//in checkout.js
const hyper = Hyper("publishable_key");
Note: If you have migrated from Stripe, ensure that you have enabled the 'Handle card information directly' option under the Settings > Integration section of your Stripe dashboard to allow hyperswitch to securely process your customers' card details.
- Run the server
npm start