#dahri_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1283708025848467576
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- dahri_docs, 1 day ago, 16 messages
- dahri_code, 2 days ago, 26 messages
- dahri_code, 3 days ago, 6 messages
hi! you can use test clocks to advance time and simulate the subscription recurring : https://docs.stripe.com/billing/testing/test-clocks
let me see this, i have tried but could not understood how to simulate actually
can you please help me set up simulation time for one subscription then i will carry it out further?
sure, what have you tried, where are you stuck?
let me share subscription id with you
sub_1PxkQeS4f9sxCRXIgOBwymhx
this is subscription id which i want simulate like after a month.
while i have tried for one subscription but delete that when i didnot understood
got it, so what's the question exactly, what have you tried and where are you having a problem?
I really dont understand why your cs people dont understand common questions? really upset from here
i want to simulate subscription for a month if subscription is of 9/12/2024 then i want to simulate it to next cycle when recurring payment will happen.
i think its pretty simple?
it is yes. The docs above describe how to get started. What have you tried specifically and where are you having a problem?
I have setup time for next cycle but nothing happened actually,
how did you set it up? Did you make an API call? do you have a screenshot of what you see or where you set it up?
For sub_1PxkQeS4f9sxCRXIgOBwymhx I'm not seeing any TestClock usage so maybe it's a different Subscription that you did this on.
yeah I see you started doing it in the last minute
cool, then the docs/Dashboard explain how to proceed and how to simulate advancing time, if you run into a specific problem let us know with full details.
yeah for this i just configured, now can you please tell me exactly when i will receive webhook call ?
when you advance the clock
but it didnot recieve any webhook call when i advanced the time
you didn't advance the time though?
yeah but that is still today
you advanced by I think one second?
advance it by a month since that's what you want to test.
cool you advanced it and got the webhook events you expected. Hope's that's clear now!
yeah advance time is clear now, but wondering the attached to subscription should be decline and event type invoice.payment_failed should be generated while im receiving 'invoice.payment_succeeded' event.
btw thanks
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
hey
yeah advance time is clear now, but wondering the attached to subscription should be decline and event type invoice.payment_failed should be generated while im receiving 'invoice.payment_succeeded' event.
Have you tried to advance time ?
i have tried thats why im saying that why receiving 'invoice.payment_succeeded' this event while it should generate 'invoice.payment_failed' due to attached card insufficient funds.
have you read just above message after hey? is it necessary to repeat everything?
Yes I've read it.
due to attached card insufficient funds
You are using the American Express test card actually and not the insufficent funds one:378282246310005
Check it from your dashboard's Subscription view:
https://dashboard.stripe.com/test/subscriptions/sub_1PxkQeS4f9sxCRXIgOBwymhx
In order to simulate a failure you need to use this test card instead:
https://docs.stripe.com/testing#regulatory-cards:~:text=The cards in the previous table can’t be attached to a Customer object. To simulate a declined payment with a successfully attached card%2C use the next one.