What is Stripe?
Stripe is the payment infrastructure that powers millions of internet businesses โ from solo developers charging $9/month for a side project to companies like Shopify and Zoom. It handles the hard parts of accepting money online: card processing, fraud detection, tax compliance, subscription billing, and more. You write a small amount of code; Stripe handles the rest.
If you're building anything that involves charging users money, Stripe is almost always the right starting point. It's the tool that professional developers reach for by default, and for good reason.
Why use Stripe?
The main alternatives are PayPal, Square, and Braintree. Here's the honest comparison: Stripe wins on developer experience. The API is clean, the documentation is exceptional, and Stripe Checkout โ a hosted payment page you redirect users to โ means you can accept payments without building a single form yourself.
Stripe also handles complexity you haven't thought of yet: failed payment retries, proration when customers upgrade plans, VAT collection in Europe, and dispute management. Starting with Stripe means you're not rewriting your payment logic in six months when your needs grow.
SimpleAI uses Stripe for premium persona reports โ it's our first choice whenever money needs to move.
Free vs Paid
| What you get | |
|---|---|
| No monthly fee | Stripe has no subscription cost |
| Per-transaction fee | 2.9% + 30ยข on every successful card charge |
| International cards | Additional 1.5% fee |
| Stripe Radar (fraud) | Included in standard pricing |
| Stripe Checkout | Included โ no extra charge |
| Subscriptions | Included โ no extra charge |
There is no free tier in the traditional sense. You don't pay until you charge a customer, but when you do, Stripe takes its cut. On $100 of revenue, you keep ~$97. On $10,000/month, the fee is ~$290. Model this before choosing Stripe if margins are tight.
Step-by-step setup
- Go to stripe.com and create a free account โ no card required to sign up
- In the Stripe Dashboard, make sure you're in Test mode (toggle in the top-left)
- Go to Developers โ API keys and copy your Publishable key and Secret key
- Install the Stripe SDK:
npm install stripe @stripe/stripe-js - Add your keys to your
.env.localfile โ never commit them to Git - Create a server-side route that initialises a Stripe Checkout Session with your product price
- On your frontend, redirect the user to the
urlreturned by that session - Stripe shows the user a secure payment page โ you don't build this yourself
- After payment, Stripe redirects back to your
success_url - Use a webhook (Stripe โ Developers โ Webhooks) to reliably confirm payment on your server
- Once everything works in test mode, go to Settings โ Business details and complete verification to go live
Use Stripe's test card 4242 4242 4242 4242 with any future expiry to simulate a successful payment during development.
Common questions
Do I need a business to use Stripe? You can get started and test in sandbox mode immediately. To accept real payments, Stripe requires identity and business verification โ this typically takes a few minutes online.
Is Stripe available in my country? Stripe is available in 46+ countries but is not available in every market. Check stripe.com/global before building your payment flow.
What's the difference between Stripe Checkout and Stripe Elements? Checkout is a hosted page Stripe controls โ easiest to implement, zero UI work. Elements are embeddable components you put inside your own page for a more custom look. Start with Checkout.
How do I test without charging real cards? Stripe has a full test mode with test card numbers. Nothing in test mode costs money or moves real funds. Switch to live mode only when you're ready to charge real customers.
What happens if a customer disputes a charge? Stripe notifies you via email and webhook, and you have the opportunity to submit evidence. Stripe Radar automatically flags many fraudulent charges before they happen.