Setting up a Woocommerce Webhook for Stripe
To take payments and get a return feed in Stripe you need to add a Webhook into your Stripe account. You can get more information on Webhooks here https://stripe.com/docs/webhooks/stripe-events?locale=en-GB but lets just keep it simple. Here’s how to add one for all events:
- Log into your Woocommerce website and go to WOOCOMMERCE > PAYMENTS > STRIPE > MANAGE > then you will see the webhook URL in ACCOUNT DETAILS
- Copy this for pasting into Stripe
- Log into Stripe
- Click on DEVELOPERS in the top right
- Select the WEBHOOKS tab
- Click on ADD ENDPOINT in the top right
- Enter this URL https://yourdomain.com/?wc-api=wc_stripe
- Click on SELECT EVENTS and at the top click the box that says SELECT ALL
- At the bottom click ADD EVENTS
- Scroll to the bottom and click on ADD ENDPOINT
- We now repeat the process for TEST MODE
- Click back on the WEBHOOKS tab
- In the top right toggle the TEST MODE toggle to TEST MODE, it goes orange
- Follow the process from point 5 to point 9.
I hope that helps.