Get Started

This guide will walk you through creating your first KiraPay payment button and accepting your first payment.

1. Install the SDK

npm install kirapay-merchant-sdk

2. Get Your API Key

Before you begin, make sure you have your KiraPay API key:

  1. Complete the onboarding process

  2. Copy your API Key for development

  3. Now you will have full access to your merchant dashboard.

3. Make Your First Call

Here's the simplest example to create a payment button:

Plain JavaScript (HTML)

<!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>

React

4. Test the Payment Flow

  1. Open your page in a browser

  2. Click the payment button

  3. A modal will open with the KiraPay checkout form

  4. Select wallet, token and complete the transaction

  5. The modal will close upon successful payment

Congratulations! 🎉 You've successfully integrated KiraPay payments.

In the next page, you will find detailed information about customizations and all the available functions and methods.

Last updated

Was this helpful?