Stripe Payments
Ready to accept payments? Stripe is the world's leading payment platform, trusted by millions of businesses. Connect your Stripe account and the AI will build real, working payment flows for you โ no payment experience required!
Stripe Payments Overview
Video coming soon
What Can You Build?
| Payment Type | Example Use Case | Example Prompt |
|---|---|---|
| One-Time | Sell a product or service | "Add a buy button for a $29 ebook" |
| E-commerce | Shopping cart with multiple items | "Add a checkout for the shopping cart" |
| Subscriptions | Monthly/yearly billing | "Add subscription plans: $9/mo or $99/year" |
| Donations | Accept any amount | "Add a donation form where users can enter any amount" |
Getting Started: 4 Easy Steps
Step 1: Create a Free Stripe Account & Get Your API Keys
- Go to stripe.com
- Click "Start now" โ it's free to create an account
- Complete the basic signup (you can verify your identity later when going live)
- Go to dashboard.stripe.com/apikeys
- Copy your Secret key (starts with
sk_test_) - Copy your Publishable key (starts with
pk_test_)
sk_test_... and pk_test_...) for development. These let you test payments without real money. When you're ready to accept real payments, use your live keys.Getting Your Stripe API Keys
Video coming soon
Step 2: Connect Supabase First
If you haven't connected Supabase yet, see the Supabase Integration guide first.
Step 3: Add Your Stripe Keys to Your Project
- Open your project in IndigiCoder
- Click the gear icon (โ๏ธ) to open Project Settings
- Find the Stripe card
- Enter your Secret Key (from Step 1)
- Enter your Publishable Key (from Step 1)
- Click "Connect Stripe"
- Done! You'll see "Connected" with your key mode (Test or Live)
Connecting Stripe to Your Project
Video coming soon
Step 4: Tell the AI What to Build
Now just describe what payments you want:
How It Works
The AI Creates Everything You Need
When you ask for payments, the AI automatically:
- โ Creates products and prices in your Stripe account
- โ Builds secure checkout using Stripe's hosted checkout page
- โ Creates success and cancel pages
- โ Sets up the backend (Edge Functions) to handle payments securely
- โ Stores order/subscription data in your database
The Payment Flow
- Customer clicks "Buy" or "Subscribe"
- Redirected to Stripe's secure checkout (your site never sees card details)
- Customer enters payment info on Stripe
- Redirected back to your success page
- Order/subscription saved to your database
Understanding the Payment Flow
Video coming soon
Testing Your Payments
Use these test card numbers to simulate payments:
| Card Number | Result |
|---|---|
4242 4242 4242 4242 | โ Payment succeeds |
4000 0000 0000 0002 | โ Card declined |
4000 0025 0000 3155 | ๐ Requires 3D Secure |
For expiry date, use any future date (e.g., 12/34). For CVC, use any 3 digits.
Payment Scenarios Explained
Scenario 1: Simple One-Time Purchase
Best for: Digital products, services, one-off payments
The AI creates a Stripe product with a fixed price and a simple checkout button.
Scenario 2: E-commerce (Shopping Cart)
Best for: Online stores with multiple products
The AI creates a cart-based checkout that supports multiple items with varying quantities. Prices come from your database.
Scenario 3: Subscriptions
Best for: SaaS, memberships, recurring billing
The AI creates recurring products, a pricing page, and sets up webhooks to track subscription status (renewals, cancellations, etc.).
Scenario 4: Donations / Pay What You Want
Best for: Donations, tips, flexible pricing
The AI creates a dynamic checkout where customers choose their own amount.
Building Different Payment Types
Video coming soon
After Deployment
Payments work in the deployed version of your app, not in the preview. Here's what to expect:
Testing After Deployment
- Deploy your project to IndigiCoder or download and host elsewhere
- Visit your live site
- Click the checkout button
- Use test card
4242 4242 4242 4242 - Complete the payment โ you'll see it in your Stripe Dashboard!
Going Live (Real Payments)
When you're ready to accept real payments:
- Complete your Stripe account verification (identity, business details) in the Stripe Dashboard
- Go to dashboard.stripe.com/apikeys
- Copy your live keys (
sk_live_...andpk_live_...) - In your IndigiCoder project, open Project Settings (gear icon)
- Disconnect the current Stripe connection
- Reconnect with your live keys
- Redeploy your project
- You're now accepting real payments!
Viewing Your Payments
All payments appear in your Stripe Dashboard. You can:
- See all payments, subscriptions, and customers
- Issue refunds
- View analytics and reports
- Export data for accounting
- Manage disputes
Troubleshooting
Checkout isn't working in preview
That's expected! Stripe payments require deployment because they need a real server to process securely. Deploy your project first, then test.
I see "Stripe not connected"
Make sure you've connected Stripe in your Project Settings (gear icon). Also verify that Supabase is connected first โ Stripe requires Supabase for Edge Functions.
Payment succeeded but nothing saved to database
Make sure Supabase is also connected. The AI saves order data to your Supabase database. If Supabase isn't linked, there's nowhere to store the data!
Subscriptions not tracking renewals
You need to configure the webhook secret. The AI should have guided you through this. Go to your Stripe Dashboard โ Developers โ Webhooks and make sure the endpoint is set up.
Troubleshooting Stripe Payments
Video coming soon
Frequently Asked Questions
What fees does Stripe charge?
Stripe charges 2.9% + 30ยข per successful card payment (in the US). There are no monthly fees. See Stripe's pricing for details.
Can I offer discounts or coupons?
Yes! Just ask the AI: "Add a coupon code field to checkout". You'll create the actual coupon codes in your Stripe Dashboard.
How do refunds work?
Issue refunds directly in your Stripe Dashboard. The AI can also add refund functionality to your app if you ask.
Do I need Supabase for Stripe?
Technically no, but we highly recommend it. Without Supabase, there's no database to store orders or track subscription status. Most payment features work best with both connected.
Is my customer's payment info secure?
Absolutely! Your app never sees credit card numbers. Customers enter payment details directly on Stripe's PCI-compliant checkout page. Your Stripe keys are encrypted in IndigiCoder and never exposed in client code.
Stripe Integration FAQ
Video coming soon