> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cwmpay.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Accept UPI and crypto payments with a simple REST API.

## What is CWMPay?

CWMPay is a lightweight payment gateway API built specifically for Indian indie developers. Accept UPI payments and cryptocurrency with just a few lines of code.

**No monthly fees. Just 2% per successful transaction.**

## Why CWMPay?

* **Simple API** — Integrate in minutes, not days
* **UPI Payments** — Accept INR via UPI using BharatPe infrastructure
* **No Setup Fees** — Free to start, pay only when you earn
* **Webhooks** — Get real-time payment notifications
* **Secure** — HMAC-SHA256 webhook signature verification

## How It Works

<Steps>
  <Step title="Create an Account">
    Sign up at [app.cwmpay.in](https://app.cwmpay.in/signup) and generate your API key from the dashboard.
  </Step>

  <Step title="Create a Payment">
    Call the `/api/merchant/payment/create` endpoint with the amount and currency. You'll receive a unique UPI QR code.
  </Step>

  <Step title="Customer Pays">
    Your customer scans the QR code and completes the payment via any UPI app.
  </Step>

  <Step title="Verify Payment">
    Call the `/api/merchant/payment/verify` endpoint with the UTR number to confirm the payment.
  </Step>

  <Step title="Receive Webhook">
    CWMPay automatically fires a webhook to your endpoint when payment is confirmed.
  </Step>
</Steps>

## Base URL

```bash theme={null}
https://api.cwmpay.in
```

## What's Next?

<CardGroup cols={2}>
  <Card title="Quick Start" icon="bolt" href="/quickstart">
    Get your first payment running in 5 minutes
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Learn how to authenticate API requests
  </Card>

  <Card title="Create Payment" icon="indian-rupee-sign" href="/inr/create-payment">
    Create your first INR payment
  </Card>

  <Card title="Webhooks" icon="webhook" href="/webhooks/overview">
    Set up real-time payment notifications
  </Card>
</CardGroup>
