#daniel-caz_webhooks

1 messages ¡ Page 1 of 1 (latest)

tranquil yarrowBOT
#

👋 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/1278384735671816313

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

upper coral
#

You should get customer.subscription.deleted

thorn tree
#

But only at the end of the period right? Not instantly after I call that function

upper coral
#

Correct

thorn tree
#

Thanks! One other question is when a payment from a subscription fails, I instantly mark them as not active on my app, but I want to only check it as not active if the window to try the payment again expires, also is there a way to change card/get the invoice failure on email/link on my app?

upper coral
#

Let's focus on one question at a time.

One other question is when a payment from a subscription fails, I instantly mark them as not active on my app, but I want to only check it as not active if the window to try the payment again expires
You would need to find a way to detect if the customer is present in the payment flow still (likely using session cookies) before making an update to the Subscription in this case