Get your API key

Lesson 1 of 5

How online payments really work

The five actors, the safe 9-step flow, and why your server, never the browser, decides that an order is paid.

8 min Free
One step at a time, like flipping pages.

By the end of this lesson you will know who does what in an online payment, the safe 9-step flow your app must follow, and why your server, never the browser, decides that an order is paid.

You need: nothing installed yet, only a notes app to jot down the flow · Time: 8 minutes

  1. Meera runs the Pune Photography Workshop. Every month she sells 30 seats at ₹499. Today people pay her on WhatsApp by UPI, she checks her bank app, and she types names into a notebook. Mistakes happen: a seat is given twice, a payment is missed, someone says "I paid!" with a cropped screenshot.

    She asks you, a freelancer who builds with an AI agent, for a registration page: fill in name, email and phone, pay ₹499 by UPI or card, and get a seat automatically.

    To collect the money you will use a payment gateway: a company that takes the payment from the customer's card, UPI app or net banking and sends it to the business's bank account. In this course the gateway is Razorpay. Your AI agent writes the code. You prompt, test with fake money, check, and decide.

    Why?

    One real example through all five lessons means each lesson adds one piece to the same page. By the end you have a pattern you can reuse for tuition fees, coaching batches or event passes.