#Marroco-webhook
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ just want to make sure I understand, are you asking about creating the code on your end for a webhook endpoint?
Hi toby for being honest this is the first time im going to use a webhook
so I know that you guys have a webook I can connect for recieving updates for payments
Gotcha, we do have an integration builder page that helps cover the basics of setting up a webhook endpoint, and it sounds like that might be what you're looking for. You can check that out here:
https://stripe.com/docs/webhooks/quickstart?lang=php
thanks
Question, when I try to do this command
stripe listen --forward-to http://604d-73-244-117-57.ngrok.io/pac/serverwebh.php
it doesnt respont
respond
Your endpoint isn't sending a response?
correct
if I put that command in the cli
it supposed to get the respond Ready! Your webhook signing secret is '{{WEBHOOK_SIGNING_SECRET}}' (^C to quit)
Oh, so it sounds like the CLI isn't even starting. Hm, is it throwing any sort of error or message?
(Pacman Software) $ stripe listen --forward-to http://604d-73-244-117-57.ngrok.io/pac/serverwebh.php
Ready! (^C to quit)
(Pacman Software) $
it supposed to be started
this is in the cli of stripe website
thats my command
but it just stoped there
Oh, I don't think the CLI shell fully supports stripe listen. Could you try installing the CLI locally and running the command there?
perfect it works
so sorry for bothering
I execute this command
% stripe listen --events payment_intent.created,customer.created,payment_intent.succeeded,charge.succeeded,checkout.session.completed,charge.failed
--forward-to http://604d-73-244-117-57.ngrok.io/pac/serverwebh.php
Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_ec32c98b7fe0594e55ae7562ad9695b24a87c0c24113cd0b522610f62face14f (^C to quit)
Perfect, glad to hear that worked for you!
So how can I prove that works do I make a payment and I should see the event on the cli?
You can take actions that would actually generate events (such as making a payment), or you can use the CLI to trigger events which will take some actions on your behalf that result in the desired event being triggered (though there are some limitations to the events that can be triggered this way).
For example, if you open a new terminal window you can use the following commend, and the CLI will walk through the steps necessary to create a Customer and generate the associated event:
stripe trigger customer.created
Toby, I a card payment is decline or delayed the susbscription cancel?
Hi there ๐ taking over for @gilded elbow
Give me a few minutes to get caught up.
Toby, I a card payment is decline or delayed the susbscription cancel?
I don't understand this question. Can you rephrase?
Hi, yes what happen is im using webhooks
my actual situation is that my page runs throu subscriptions
and I want to update the database with the webhook
so my question is how can i track the event
id the card of payment of the subscription is decline the sub will cancel?
or it will change of status?