#paulc7053_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/1219725711385038919
๐ 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.
- paulc7053_webhooks, 22 hours ago, 21 messages
- paulc7053_code, 1 day ago, 36 messages
- paul_ece-googlepay, 3 days ago, 58 messages
- paulc7053_code, 4 days ago, 99 messages
- paulc7053_code, 5 days ago, 51 messages
- paulc7053_api, 5 days ago, 79 messages
Hi!
So one hour is when the invoice finalizes. Try adding a few more minutes on top of that
or another hour
Current period end + 1 hour (invoice finalization) => this finalizes the invoice and is ready for payment
Yup that should work
I expect a webhook request whose billing_reason to be subscription_cycle. Am I correct?
Yep
Also, how do I simulate the success/failure?
For invoice.paid event, correct?
Gotcha. For failed payments, you'd need to use the relevant test payment method
https://docs.stripe.com/testing
NP! ๐ Happy to help
But if I use declined payments, how will the initial payment go through?
Or the request is exactly the same - just a different billing_reason ?
One option is to update the payment method directly using the API
I dont' know if dashboard allows you to update the payment method on the customer
or subscription
I dont think so
is it reasonable to assume that a failed subscription is the same as a failed initial payment, just with different billing_reason ?
The object structure won't be any different so I want to say yes, but also would recommend just testing it out to be 100% sure
Can you please let me know how to test such a case?
actually the dashboard should let you change the payment method by updating the subscription
You can use this payment method: https://docs.stripe.com/testing#:~:text=the next one.-,DESCRIPTION,-NUMBER
Decline after attaching: 4000000000000341
Attaching this card to a Customer object succeeds, but attempts to charge the customer fail.
Try the payment method I shared above
Indeed, 4000000000000341 seems to work
for the successful renew I can just use the 4242 one, right?
yup
Alright, just done that
Thanks a lot!
I'll be waiting for the requests
Thanks for your time!
Happy to help ๐