Connecting Stripe to take card payments
This page takes a studio from “we don’t take cards yet” to a live booking form that charges a card and records the payment: a Stripe account, its keys in Booking, the webhook that keeps Booking in step with Stripe, a test booking, then the switch to live money. It’s for a studio owner doing this for the first time, and for anyone whose site shows priced bookings as “due at the door” and wants them paid online instead. Payments, Stripe & commerce is the reference for everything Stripe does once it’s connected.
Works on the free plan. Stripe card payments for drop-in classes and appointments are in the free version. You pay Stripe’s own processing fees, and nothing to Gather Grove on top.
How it works
- Your own Stripe account takes the money. Booking talks to it with two API keys you paste in: a publishable key the card field uses in the browser, and a secret key the server uses to charge. Payouts go from Stripe to your bank on Stripe’s schedule.
- The webhook reports back. Stripe tells Booking about things that happen after the booking form closes: a payment that settles late, a refund you make in the Stripe Dashboard, a membership renewal that succeeds or fails. Booking sets it up for you with one button.
- Test first, then live. Stripe gives every account a test mode with its own keys, where no real money moves. You connect test keys, make a booking with a test card, and swap in live keys once it works.
Step 1: Open a Stripe account
Sign up at stripe.com. Test mode works straight away. Before you can take real payments, Stripe asks you to activate the account with your business details and the bank account for payouts. Do that now, since Stripe may take a little while to review it, and you can carry on in test mode meanwhile.
Step 2: Paste your test keys into Booking
In Stripe, switch to test mode and open Developers → API keys (the Payments settings screen links straight there). Copy the Publishable key, which starts pk_test_, and reveal and copy the Secret key, which starts sk_test_.
In WordPress, go to Gather Grove Booking → Settings → Payments. Under Stripe:
- Payment Gateway: Stripe.
- Stripe Publishable Key: the
pk_test_key. A “TEST MODE — switch to live keys before going live” badge appears under it. - Stripe Secret Key: the
sk_test_key. Once saved, the field shows “saved — enter a new key to replace it” and never displays the key again. Use the full secret key: a restricted key (rk_) isn’t accepted.
Save. The box at the top now reads Stripe is connected and ready to accept payments. That message only checks that both keys are filled in and start with pk_ and sk_. It doesn’t contact Stripe, so a mistyped key still shows as connected. The test booking in Step 4 is the real check.
Step 3: Connect the webhook
After saving, a Connect Webhook Automatically button appears under Stripe Webhook Secret. Click it. Booking asks Stripe to create an endpoint at the address shown as Webhook endpoint URL (ending /wp-json/gather-grove/booking/v1/webhooks/stripe), subscribes it to every event Booking handles, and saves the signing secret for you. You’ll see Webhook configured successfully. Signing secret saved automatically., and then a green Webhook connected. panel.
If you’d rather do it by hand, add an endpoint for that URL in Stripe under Developers → Webhooks, then paste its signing secret (starting whsec_) into Stripe Webhook Secret and save. The button is easier because it subscribes to exactly the events Booking needs.
Skipping the webhook doesn’t stop card bookings, but it leaves gaps. A booking whose confirmation doesn’t come back straight away can sit as pending for about 15 minutes, until a background check asks Stripe and settles or releases it. Refunds you make in the Stripe Dashboard, and renewals, are never recorded.
Step 4: Make a test booking
Open your public schedule in a private browser window and book a priced class or appointment as a client. The booking form now shows a card field. Pay with Stripe’s test card 4242 4242 4242 4242, any future expiry date and any CVC. The booking confirms and the confirmation email arrives.
Check both sides: the booking appears under Gather Grove Booking → Bookings as paid, and the payment appears in Stripe’s test-mode Payments list. Cancel the test booking afterwards to free the seat.
Step 5: Switch to live
Once Stripe has activated your account, turn test mode off in Stripe and copy the live keys (pk_live_ and sk_live_) from the same API keys screen. On the Payments screen, replace both keys and save. The TEST MODE badge disappears.
Then click Connect Webhook Automatically again. Stripe keeps test and live webhooks separately, each with its own signing secret, so the secret saved in Step 3 only works for test events. The green Webhook connected. panel stays visible after the key swap because it only checks that a secret is saved, not which mode it belongs to. Clicking again creates the live endpoint and replaces the secret. Live mode needs your site on HTTPS. Without it the button refuses, and says why.
Finally, make one real booking with your own card, then refund it (see Refunding a booking) to see the whole round trip with real money.
Run it
Automatic: from now on, a booking on a priced class or appointment takes the card at booking time, and the seat is confirmed when the payment succeeds. A declined card releases the seat. Stripe emails its own receipt if you’ve turned receipts on in Stripe. Booking sends its confirmation either way.
What changes for pay at the door: with Stripe connected, a priced booking needs a card, unless you’ve turned on Venmo, Zelle, Pay in person or your own method under Other ways to pay. Those still book unpaid, with Card offered first. Bookings made before you connected stay due at the door, so mark them Paid in cash or Paid by check as people pay. To take cash from someone yourself, use Book a Client, which can still record cash, check or a comp.
By hand: nothing day to day. Keep an eye on Stripe’s payout schedule, and if you ever roll your secret key in Stripe, paste the new one in here the same day, since the old one stops working.
Check it before launch
- The Payments screen shows the green “connected” box, no TEST MODE badge, and the Webhook connected. panel.
- In Stripe (live mode) under Developers → Webhooks, an endpoint named “Gather Grove — auto-configured” points at your site.
- A real booking shows a card field, confirms, and appears as paid under Bookings and in Stripe’s live Payments list.
- Your refund of that booking shows as refunded in both places.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The booking form has no card field | A key is missing or doesn’t start with pk_/sk_ (a restricted rk_ key counts as missing), or the class has no price. | Settings → Payments: paste the publishable and full secret keys and save. Check the class’s Drop-in Price. |
| “Connected” shows, but every card fails | A mistyped key, or a test key mixed with a live one. | Copy both keys again from the same mode in Stripe and save. |
| There’s no Connect Webhook Automatically button | The keys haven’t been saved yet. | Save the keys, then reload the Payments screen. |
| The button says the site isn’t serving over HTTPS | Live keys need an HTTPS webhook address. | Turn on SSL for the site with your host, then click the button again. |
| It worked in test, but live payments sit as pending and Stripe refunds never show in Booking | The saved webhook secret is still the test one. | With live keys saved, click Connect Webhook Automatically again. |
| The button says an endpoint “already exists”, but payments aren’t recorded | An old endpoint’s secret was never saved here, and Stripe won’t reveal it again. | Delete that endpoint in Stripe under Developers → Webhooks, then click the button again. |
| Clients still see “due at the door” or “due by Venmo” | They booked before Stripe was connected, or chose Pay in person, Venmo, Zelle or your own method, which you have turned on. | Mark those bookings paid as you collect. To make every booking take a card, turn those methods off under Settings → Payments → Other ways to pay. |
Applies to Gather Grove Booking v1.278.2. Last synced November 11, 2026.