To set up you webhook in Stripe visit the Webhook setting page in Stripe
Click ‘Add an endpoint’ then –
- Add your endpoint URL from your site settings, which will be in the format – https://mysite.com/wp-json/wpum/v1/stripe
- Select ‘Events on your account’
- Select all events.
- Click ‘Add endpoint’
- Under the endpoint ‘Signing Secret’, click reveal then copy and paste the secret into the setting on the WP User Manager Stripe settings page.
- Click ‘Save Changes’
Once you have successfully connected your Stripe account and set up your webhook, you can begin accepting payments for site registration.
Note: if you want to test the Stripe integration on a local development site, Stripe will not be able to access your site for the endpoint so you would need to use a service like ngrok to create an accessible URL to use in the Stripe webhook.