Skip to main content

Prerequisites

  • A CWMPay account — Sign up here
  • Your API key from the dashboard

Step 1 — Get Your API Key

  1. Login to app.cwmpay.in
  2. Go to API Keys section
  3. Click Generate API Key if it’s not generated
  4. Copy your key — store it safely
Never expose your API key in frontend code or public repositories.

Step 2 — Create a Payment

Response:

Step 3 — Show QR to Customer

Show amount (₹499) to the customer — not finalAmount (₹499.37). The QR code already has the correct amount encoded.

Step 4 — Verify Payment

After customer pays, they’ll share their UTR number. Verify it:
Response:

Step 5 — Receive Webhook

CWMPay automatically notifies your webhook URL when payment is confirmed:
You’re all set! Check out the full API Reference for all available options.