You need
- A Stripe account (free to create at
https://dashboard.stripe.com). - 5 minutes.
Connect Stripe
- Admin → Settings → Store → Payments.
- Paste your Stripe secret key (starts with
sk_live_for production,sk_test_for testing). - Click Save.
Configure the webhook
Stripe needs to tell us when a payment succeeds. Set up the webhook:
- In Stripe Dashboard → Developers → Webhooks → Add endpoint.
- Endpoint URL:
https://platform.golfcartos.io/api/store/your-slug/webhook(replaceyour-slug). - Events to listen for:
checkout.session.completedcheckout.session.expired
- Copy the Signing secret (
whsec_...). - Back in our admin: paste the Signing secret in Webhook secret and save.
Test
In test mode (key starts with sk_test_), use Stripe's test card: 4242 4242 4242 4242 with any future expiry and any 3-digit CVC. The order should flip to paid within seconds.
Going live
When you're ready for real customers, swap to your sk_live_ key + live webhook secret. Test with a $1 order to yourself first.