How to Set Up the Stripe Webhook in EventPrime - EventPrime

Our best plan is on SALE right now!

Skip to content
Home / Paid Events / How to Set Up the Stripe Webhook in EventPrime

How to Set Up the Stripe Webhook in EventPrime

When a customer pays with Stripe but closes the page before returning to your site, EventPrime may never hear that the payment worked. With the webhook, Stripe tells your site directly, and the existing booking is confirmed. It never creates a new booking and never confirms a booking twice. The webhook is optional: checkout works without it.

Requires: EventPrime Stripe Payments 4.6 or later (see the 4.6 release notes).

Set it up

  1. In WordPress, go to EventPrime > Settings > Payments > Stripe. Copy the Webhook Endpoint URL. It must be reachable from the internet over HTTPS (a local or password-protected staging site cannot receive Stripe’s messages).
  2. In the Stripe Dashboard, open Developers > Webhooks and add an endpoint (a “destination”). Stripe’s own instructions show the current Dashboard screens: Stripe webhooks. Paste the URL. Choose events from your account, and select payment_intent.succeeded only.
  3. After saving, Stripe shows the signing secret (it starts with whsec_). Copy it.
  4. Back in EventPrime, paste it into Webhook Signing Secret (Test) or (Live), matching the mode you created the endpoint in, and click Save Changes. The field shows asterisks afterwards; leave it blank to keep the saved secret, or type a new one to replace it. Tick “Remove saved secret” to delete it.

Test and live endpoints have different signing secrets. EventPrime uses the secret that matches the mode of the Secret Key saved on the same screen (a key starting sk_test_ is test mode, sk_live_ is live). When you switch keys from test to live, make sure the Live secret is saved too. A secret from the Stripe CLI (stripe listen) works the same way, but it is a different secret from the Dashboard one.

Check that it works

Make a test booking with a Stripe test card. In Stripe, open the endpoint and look at the delivery: it should show a 200 response. In EventPrime, Latest Webhook Deliveries lists the last results, for example “completed” or “already completed”.

What the results mean

ResultMeaning
completedThe webhook confirmed the booking.
already completedThe booking was already confirmed by the checkout page; nothing was repeated.
not configuredNo signing secret is saved for the current mode (Stripe will retry).
bad signatureThe secret is wrong, belongs to the other mode, or the request did not come from Stripe.
mode mismatchA live event reached a test-mode site, or the reverse. Nothing was changed.
retry …Stripe or the site was temporarily unavailable. Stripe tries again automatically.
manual review …The payment does not match its booking (different amount, booking cancelled, or no stored link). Nothing was changed; check the booking and the payment in Stripe by hand.

Good to know

  • Only payments made on 4.5.1 or later that were started from your checkout can be matched to a booking. Older paid-but-unconfirmed bookings are not repaired automatically; compare them with Stripe by hand.
  • Events for payments that do not belong to EventPrime (for example another product on the same Stripe account) are accepted and ignored.
  • If a delivery fails with 400, check that the signing secret belongs to this endpoint and mode. In Stripe you can resend a delivery after fixing it.
  • The log keeps the last 10 deliveries and stores no card details, personal data or secrets.

Related

Questions, Support & Custom Solutions

  • Need more details or can't find what you're looking for? Let us know how we can help! Contact our support team here.
  • Looking for a tailor-made solution to meet your specific needs? Our dedicated customization team is here to help! Use this link to share your requirements with us, and we'll collaborate with you to bring your vision to life.
Subscribe
Notify of
guest

0 Comments
0
Would love your thoughts, please comment.x