#Marroco-webhook

1 messages ยท Page 1 of 1 (latest)

gilded elbow
#

Hi there ๐Ÿ‘‹ just want to make sure I understand, are you asking about creating the code on your end for a webhook endpoint?

somber verge
#

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

gilded elbow
somber verge
#

thanks

#

Question, when I try to do this command

#

it doesnt respont

#

respond

gilded elbow
#

Your endpoint isn't sending a response?

somber verge
#

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)

gilded elbow
#

Oh, so it sounds like the CLI isn't even starting. Hm, is it throwing any sort of error or message?

somber verge
#

it supposed to be started

#

this is in the cli of stripe website

#

thats my command

#

but it just stoped there

gilded elbow
#

Oh, I don't think the CLI shell fully supports stripe listen. Could you try installing the CLI locally and running the command there?

somber verge
#

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)

gilded elbow
#

Perfect, glad to hear that worked for you!

somber verge
#

So how can I prove that works do I make a payment and I should see the event on the cli?

gilded elbow
#

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

somber verge
#

Toby, I a card payment is decline or delayed the susbscription cancel?

tidal gust
#

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?

somber verge
#

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?