Back to Blog

How to Integrate InzoPay with Your Website

This guide walks you through integrating InzoPay payments into your website or web application using the REST API.

Prerequisites

  • An InzoPay account with API keys generated
  • At least one payment method (wallet) added
  • A server to make API calls from (never call from the browser with your secret key)

Option 1: Use Payment Links (no coding required)

The fastest integration. Create a payment link and embed it as a button:

<a href="https://inzopay.com/pay/YOUR_LINK_SLUG"
   target="_blank"
   class="pay-btn">Pay with InzoPay</a>

Option 2: API Integration

For a seamless checkout experience embedded in your site, use the API.

Step 1 — Store your API key securely

# .env
INZOPAY_SECRET=ik_live_sk_xxxxxxxxxxxx

Step 2 — Create a payment request

POST /api/v1/payments/create
Authorization: Bearer ik_live_sk_xxx
Content-Type: application/json

{
  "amount": "50.00",
  "currency": "USDT",
  "customer_email": "[email protected]",
  "redirect_url": "https://yoursite.com/thank-you"
}

Step 3 — Handle the webhook

When payment completes, InzoPay sends a payment.paid webhook to your endpoint. Verify the signature and fulfill the order.