#juneid-webhook-cli
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- juneid-testing-subs-webhooks-cli, 31 minutes ago, 14 messages
- juneid_90104, 2 hours ago, 17 messages
- juneid_90104, 22 hours ago, 48 messages
No, can you please summarize the new issue you're having listening to webhooks via the CLI?
I am working with clocks test
is there anyway to listen to webhooks from application because its not working for me
in clocks test mode only
otherwise the weekbooks are working
Can you say more? We talked about using the CLI for this. What do you mean by "listen to webhooks from application" aside from setting up an endpoint or using the CLI to listen?
i have th endpointi my .net application
it works fine when in test or live mode
but it does not get a hit when working in clocks test.
Can you share an example event ID?
it works fine when in test or live mode
This should also get events from the test clock subscription
These are normal test mode events
Let me create a new test clock.
I will share the event in a minute
clock_1OFNhkKqvjOx1xhtbZMTkIxW
Do you have access to it ?
Sure
In this scenario, the payment method is not added and three payment retries are already done and after 4th the payment will be failed.
on that failed event i want my endpoint to work.
Do you have an example event id like evt_123 that you suspect you're not getting?
cus_P3UhfRyzF8oQ7b
For this cust
When after the retries the payment was failed then why did not my endpoint get a hit.
if I advance the time and miss the time when webhook works? is it causing this ?
Aything here ?
Which event are you trying to handle?
eg, here is the customer.subscription.updated event from that customer, when the subscription updated to unpaid
https://dashboard.stripe.com/test/events/evt_1OFNjRKqvjOx1xhtPrxQ96cG
juneid-webhook-cli
Here is my understanding:
so my endpoint listens to this customer.subscription.updated event and then I trigger an action to cancel a subscription.
But while working with clock test as I advance the time to the time when all retries will be completed.
will this hit my end point ?
or it will miss because i have already advanced the time .
Yes it will hit your endpoint, the TestClock doesn't change anything with that behaviour
Well it is not hitting then.
return InvoicePaymentFailed(stripeEvent, msgs);
am i handling it properly ?
Sorry it's a picture of code so I have no idea what you're asking
Step 1: Look at the Event in your Dashboard
Step 2: Confirm if it was sent to your webhook endpoint
Step 3: Add simple logs on your server every time you get an Event to see what you get and confirm you see it
Alright.
My colleague showed you a clear example earlier