PAYMENTS / LESSON 01
How Online Payments Work.
What happens when someone pays online, why you never handle card numbers yourself, and how to choose a payment tool

Loading the lesson…
Loading activities…
PAYMENTS / LESSON 01
What happens when someone pays online, why you never handle card numbers yourself, and how to choose a payment tool

Loading the lesson…
Loading activities…
Taking money online looks like one lil button. Behind that button are banks, card networks, fraud checks and a LOT of rules. In this lesson we'll walk through what actually happens when someone pays, why apps hand that whole job off to a payment provider, and the two very different tools this module covers.
Here's a simplified card payment, from the click all the way to money landing in your account.
They type their card details on a checkout page, or they tap something like Apple Pay or Google Pay.
The card details go to the payment provider. Your app never gets them. The provider passes the payment request along through the card network, like Visa or Mastercard.
The bank that issued the card checks the account and either approves or declines the payment.
The provider tells your app whether the payment worked, usually with a webhook.
Approved payments get collected and paid out to your bank account on a schedule, minus the provider's fees (yeah, they take their cut).
Handling raw card numbers comes with strict security rules, known as PCI compliance. Meeting those rules yourself is a big job, and it never really ends.
Payment providers carry that weight for you. The card number goes straight from the customer's browser to the provider's secure systems. Your app only ever sees a reference to the payment and never the card itself.
Card processing is only the start. A good provider also deals with all of this.
So a customer lands on your "thank you" page. Did they pay? Maybe... and maybe not. They could've closed the tab halfway through, or just typed the URL in directly.
The signal you can actually trust is the webhook. The provider sends your server a signed message saying the payment succeeded, and THAT'S when you give access, ship the order or send the receipt. You'll see webhooks in action in the Stripe chapter, and they get a full lesson of their own later on in the API Fundamentals module.
This module covers two tools that live in very different places.
| Payments API | Selling Platform | |
|---|---|---|
| What it is | Building blocks you wire into your own app | A place to sell, with payments built in |
| Who builds the checkout and product pages | You, using the provider's tools | The platform does it for you |
| Who tracks who paid for what | Your app and database | The platform keeps memberships and access |
| Best when | You want full control inside your own product | You sell digital products, memberships or access and want to move fast |
Stripe is a payments API. Whop is a platform for selling digital products, memberships and access, with payments built in.
If you know me at all, you know I'm the own-your-tools guy. Three years of an all-in-one SaaS can run you $30,000+ handed to a company that can change the rules any Monday. Even so, I'm not telling you to build card processing from scratch (please don't).
When you're comparing payment tools, ask yourself these questions.
| Tool | Kind | Chapter Covers |
|---|---|---|
| Stripe | Payments API | How a payment flows, checkout, webhooks and testing |
| Whop | Selling platform | What it is, setting up a product and checkout, and the developer side |
The Stripe chapter is up first. You'll see why payments get complicated and how a Stripe payment flows from start to finish...