Get your API key

Intermediate · 5 lessons · 42 min

Accept payments with Razorpay

Add a safe UPI and card payment to a client's site with your AI agent: orders, Checkout, signature checks, webhooks, refunds and going live.

Who it's for

Students and freelancers who build with AI and now have a client who wants to collect money online, like a workshop ticket or a monthly tuition fee.

What you'll build

A ₹499 workshop registration page that takes test payments, verifies every payment on the server, records it from webhooks, handles refunds, and a go-live checklist for the client's live account.

Why this course

Payment code is where AI-built apps fail most expensively. Developers keep reporting webhook signatures that never match because the body was parsed first, and code reviews keep finding the same three bugs: the browser decides the price, webhooks are not verified, and the same payment is fulfilled twice.

Take first: APIs and databases, explained by building, Safe vibe coding

Lessons in this course

  1. 1How online payments really workThe five actors, the safe 9-step flow, and why your server, never the browser, decides that an order is paid. 8 min Free
  2. 2Test mode and API keysGet test keys, keep the Key Secret on the server only, and pay with Razorpay's test cards and test UPI IDs. 7 min Log in to open
  3. 3Orders and CheckoutYour server creates the order from its own price list, saves it, and the browser opens Razorpay Checkout. One Prompt Card builds it. 9 min Log in to open
  4. 4Verify payments and handle webhooksCheck the payment signature on the server, set up a test webhook, verify it on the raw body, ignore repeats, and catch the usual AI mistakes. 9 min Log in to open
  5. 5Refunds, reconciliation and going liveRefund fully or partly, record it from webhooks, match your records with Razorpay, and take the client's own account live safely. 9 min Log in to open
Next upAI at work: Excel, Sheets and n8nUse AI for formulas, data cleaning, reports and automations that save hours every week.