#tyson-cli-webhook
1 messages ยท Page 1 of 1 (latest)
hi koopajah
what doe you all "stripe crl"? To you mean Stripe CLI?
Also what does
it works but doesn't call at the endpoint
mean? Can you be a lot more explicit?
yes sorry
I am testing it on a local inviroment is that why i dont get the request into the actual application
note: i am building it on bubble
I am going to need a lot more details sorry. And I don't know what bubble is
tyson-cli-webhook
Hope you don't mind me jumping in here but I'm having a similar problem. I'm running an xampp webserver and setup the cli command to listen to localhost/stripe-webhook.php, copied the whsec into the code but it's not triggering the script when I do the stripe trigger command. I added an fwrite at the top of the file to write to a log file and nothing is happening.
the event is being created in the dashboard but not firing my local script btw
@tropic lion Please ask your own question separately since it's likely not the same thing
no problem, still learning. thanks
all good, just want to avoid mixing up the two investigations as you won't respond at the same pace. But we can always circle back here after once we figure out yours ๐
Is there a solution?
Right now you have provided no information so I can't really help yet. I'm waiting for you to provide actionable details
ok I'm trying to test local webhook triggers using the cli and it's not triggering my local script, but is registering the event in the dashboard (feels like the forwarding isn't working correctly).
I'm running a local xampp server where I have strip-webhook.php in the root. I'm setting up the forwarder using
stripe listen --forward-to https://dashboard.stripe.com/test/webhooks/we_1MR1CTGyTHRDmBrwx6OOCdfd my webhook and its not doing any events, i i can get the request in the local section if you look at the above picture but it doesnt actually seem to be calling the webhook as i am not getting the reqest on bubble
Hi there ๐ taking over for @serene lion
Give me a few minutes to get caught up.
stripe listen --forward-to https://dashboard.stripe.com/test/webhooks/we_1MR1CTGyTHRDmBrwx6OOCdfd
The--forward-toflag should be pointing to a local server endpoint, not a Stripe Dashboard URL. So it should look something like
stripe listen --forward-to <some-xampp-server-endpoint-you-own>
Or:
stripe listen --forward-to localhost:<some-port-number>/<some-endpoint>
just to add, in case you made the same mistake as me... you need to leave the listener open and use a separate cmd window to trigger the stripe trigger command. I did a stupid ๐