Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.12 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.12 KB

Hyperswitch HTML + Node Integration

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.

Introduction

This demo application uses the following tech-stack :

Frontend : HTML + CSS with JavaScript

Backend : Node

Prerequisites

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!

Running the sample

  1. Add your keys :

    • Navigate to public/script.js and replace the placeholder HYPERSWITCH_PUBLISHABLE_KEY with your publishable key.
    • Navigate to server.js and replace the placeholder HYPERSWITCH_API_KEY with your API key.
  2. Install the dependencies / build the server :

npm install
  1. Run the server :
npm run start
  1. The sample app will now be accessible here : http://localhost:4242/index.html.