JS with REST API Integration
Integrate hyper SDK to any Web App using hyperswitch-node
1. Setup the server
2. Build checkout page on the client
2.1 Define the payment form
<form id="payment-form">
<div id="unified-checkout">
<!--HyperLoader injects the Unified Checkout-->
</div>
<button id="submit">
<div class="spinner hidden" id="spinner"></div>
<span id="button-text">Pay now</span>
</button>
<div id="payment-message" class="hidden"></div>
</form>3. Complete payment on the client
3.1 Handle the submit event and complete the payment
3.2 Display a payment status message
Last updated
Was this helpful?



