Stripe Payment Setup
Quick & easy setup - no backend functions needed!
✅ RECOMMENDED: Success Page Method (Easiest)
No Backend Functions Required
💡 This method works RIGHT NOW - no additional setup needed. Perfect for testing and works great for production too!
1
Copy Your Success URL
https://exerciseclinic-diabetes-exercise-management.com/PaymentSuccess?session_id={CHECKOUT_SESSION_ID}2
Create Stripe Payment Link
- Go to Stripe Dashboard → Payment Links
- Click "Create payment link"
- Select your product (or create new)
- Set price
- In "After payment" section, select "Show a confirmation page"
- Paste the Success URL from Step 1
- Click "Create link"
3
Add Payment Link to Your Shop
Copy the payment link from Stripe and add it to your products in pages/EquipmentShop.js
Example:
stripePaymentLink: "https://buy.stripe.com/YOUR_LINK_HERE",
inStock: true // Change to true when ready4
Test It!
Use Stripe's test mode to verify everything works:
✅ Test Card:
- Card: 4242 4242 4242 4242
- Expiry: Any future date (e.g., 12/34)
- CVC: Any 3 digits (e.g., 123)
✅ That's it! Your payment system is now live. When customers complete payment, they'll be redirected to the success page, which automatically creates the order and notifies them.
What Happens After Payment?
- 1Customer completes payment on Stripe
Stripe processes their card
- 2Stripe redirects to PaymentSuccess page
Your app receives the payment confirmation
- 3Order is created in database
ShopOrder entity with "pending" status
- 4OrderProcessor picks up the order
Forwards to Printful or CJ Dropshipping
- 5Customer receives confirmation
Email + in-app notification
- 6TrackingSync updates when shipped
Customer gets tracking number automatically
Advanced: Webhooks (Optional - For Later)
Requires Backend Functions Setup
⚠️ Backend Functions Not Available Yet
To use webhooks, you need to:
To use webhooks, you need to:
- Enable Backend Functions in your Base44 app (Builder tier required)
- Deploy the stripeWebhook function
- Configure Stripe to send webhooks to your function URL
Why use webhooks?
- ✓ More reliable (works even if customer closes browser)
- ✓ Handles subscription events automatically
- ✓ Industry standard for production apps
💡 Recommendation: Start with the Success Page method above. It works perfectly for testing and even production. Add webhooks later if you need subscription management or want extra reliability.
Need Help?
If you run into any issues:
