HTML with REST API Integration
Integrate hyper SDK to your HTML Web App using Hyperswitch-node
1. Setup the server
2. Build checkout page on the client
2.1 Load HyperLoader
<script src="https://beta.hyperswitch.io/v1/HyperLoader.js"></script>2.2 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>2.3 Initialize HyperLoader
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?



