Exercise Clinic

Stripe Payment Setup

Quick & easy setup - no backend functions needed!

✅ RECOMMENDED: Success Page Method (Easiest)
No Backend Functions Required
1

Copy Your Success URL

https://exerciseclinic-diabetes-exercise-management.com/PaymentSuccess?session_id={CHECKOUT_SESSION_ID}
2

Create Stripe Payment Link

  1. Go to Stripe Dashboard → Payment Links
  2. Click "Create payment link"
  3. Select your product (or create new)
  4. Set price
  5. In "After payment" section, select "Show a confirmation page"
  6. Paste the Success URL from Step 1
  7. 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 ready
4

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)
What Happens After Payment?
  1. 1
    Customer completes payment on Stripe

    Stripe processes their card

  2. 2
    Stripe redirects to PaymentSuccess page

    Your app receives the payment confirmation

  3. 3
    Order is created in database

    ShopOrder entity with "pending" status

  4. 4
    OrderProcessor picks up the order

    Forwards to Printful or CJ Dropshipping

  5. 5
    Customer receives confirmation

    Email + in-app notification

  6. 6
    TrackingSync updates when shipped

    Customer gets tracking number automatically

Advanced: Webhooks (Optional - For Later)
Requires Backend Functions Setup

Why use webhooks?

  • ✓ More reliable (works even if customer closes browser)
  • ✓ Handles subscription events automatically
  • ✓ Industry standard for production apps
Need Help?

If you run into any issues: