Where the settings are
Go to HarborBook → Settings → Payments and open the Stripe sub-tab. You can also click Settings on the Stripe Payments card under HarborBook → Pro. There are no Stripe settings on individual activities.
Stripe API Keys
- Test Mode: a switch with Live and Test. New installs start on Test. The screen shows the key fields for the selected mode only.
- Test Publishable Key: your Stripe test publishable key, starting with pk_test.
- Test Secret Key: your Stripe test secret key, starting with sk_test.
- Live Publishable Key: your live publishable key, starting with pk_live.
- Live Secret Key: your live secret key, starting with sk_live.
- Test Connection: checks the saved secret key of the saved mode against Stripe.
Secret keys are never shown again after saving. The field stays empty and shows “Saved (ends in XXXX). Leave empty to keep it.” To replace a key, paste the new one and save.
HarborBook does not check that a key belongs to the selected mode. Make sure test keys go in the test fields and live keys in the live fields.
Checkout & Webhooks
- Payment Element: a switch with Card only and Payment Element. Payment Element is the default and shows Stripe’s full payment form with cards, Apple Pay and Google Pay. Card only shows a single card line and no wallets.
- Webhook Signing Secret: the signing secret of your Stripe webhook endpoint, starting with whsec. The Webhook URL to use is shown under this field. After the first verified webhook arrives, the screen also shows Last webhook received with the time.
- Statement Descriptor Suffix: optional text, up to 22 characters, added after your Stripe account’s statement descriptor on the guest’s card statement. HarborBook sends it as typed, and Stripe refuses some special characters, so keep it to plain letters and numbers. Default: empty.
- Save Stripe Settings: saves the sub-tab.
Apple Pay and Google Pay also depend on your Stripe account: wallets must be enabled in Stripe and your domain registered there. Only card-based payments are offered. Bank transfers and buy-now-pay-later methods are not available in the form.
Set up the webhook
- On the Stripe sub-tab, copy the address shown after Webhook URL. It ends with the path below.
- In the Stripe dashboard, open the webhooks page and add an endpoint with that address.
- Select the four events listed in the next section.
- Save the endpoint, reveal its signing secret and copy it.
- Paste it into Webhook Signing Secret and click Save Stripe Settings.
- Make a test booking, then reload the settings screen. Last webhook received should show a time.
/wp-json/harborbook/v1/stripe/webhook
Events to select
- payment_intent.succeeded: confirms the payment on the booking. If a guest paid but no booking was created, for example because they closed the tab, HarborBook refunds the payment in full after about 20 minutes and emails you.
- payment_intent.payment_failed: marks a waiting payment as failed.
- charge.refunded: records refunds that you make in the Stripe dashboard on the booking.
- charge.dispute.created: adds a note to the booking and emails the site administrator when a guest disputes a payment.
Other events are accepted and ignored.
What works without a webhook
Guests can still pay and bookings are still confirmed, because HarborBook checks each payment with Stripe directly. Without the webhook you lose three things: the automatic refund of payments that never became a booking, refunds from the Stripe dashboard appearing in HarborBook, and dispute notes and emails.
There is one signing secret field for both modes. When you switch between Test and Live, replace the secret with the one from the matching Stripe endpoint.
What is sent to Stripe
- The amount and your HarborBook currency.
- The guest’s name, email and phone from the contact step, as billing details.
- The activity name, the departure date and the number of passengers.
- The booking reference, on the Stripe invoice created for the payment.
Card numbers are entered in Stripe’s own fields and never reach your server.
Switching the add-on off
When Stripe Payments is switched off, the card option disappears from the booking form and the Stripe sub-tab is hidden. Your keys, bookings and payment history are kept. While it is off, refunds issued in WordPress are only recorded and are not sent to Stripe.