#Nick23
1 messages · Page 1 of 1 (latest)
👋 Thanks for reaching out
You can use stripe listen --forward-to localhost:4242/webhook.php from your local terminal:
https://stripe.com/docs/webhooks/test
Hi thanks for the response. I have the webhook.php file in my route directory on my live server with a custom built checkout form but I'm not sure how to forward the event to the webhook.php file when the customer completes checkout process and is redirected to payment successful page
Is there another method that I can listen for the charge.succeeded event using php or am I looking at this wrong way
You need a additional service to 'forward' the event from us to your local PHP webhook handler. You can either use the CLI (https://stripe.com/docs/stripe-cli/overview) or configure a test mode webhook on your Dashboard with a ngrok tunnel to your local server