Get Started
1. Install the SDK
npm install kirapay-merchant-sdk2. Get Your API Key
3. Make Your First Call
<!DOCTYPE html>
<html>
<head>
<title>My First KiraPay Payment</title>
</head>
<body>
<h1>Product: Premium Plan</h1>
<p>Price: $99.99</p>
<!-- Payment button will appear here -->
<div id="payment-button"></div>
<!-- Load KiraPay SDK -->
<script src="https://unpkg.com/kirapay-merchant-sdk"></script>
<script>
// Create payment button
const button = new kirapay.ButtonDynamicPrice({
price: 99.99,
apiKey: "test_your_api_key_here",
title: "Buy Now - $99.99"
});
// Render button to page
document.getElementById('payment-button').appendChild(button.render());
</script>
</body>
</html>4. Test the Payment Flow
Last updated
Was this helpful?