#ahjaydog - Subscriptions
1 messages · Page 1 of 1 (latest)
Hello! To clarify, you want to get Subscription status in a webhook, correct? When do you want to get that exactly?
These things are listed under Manage payments that require confirmation in https://dashboard.stripe.com/settings/billing/automatic
I just want to recreate those things but do a bit more
I think you probably want to listen for the invoice.payment_action_required Event: https://stripe.com/docs/api/events/types#event_types-invoice.payment_action_required
That Event will fire whenever an Invoice payment requires further action to complete.
ok so if it is incomplete it means requires action?
No.
the invoice object or charge object becomes incomplete?
Let's back up. I want to make sure I understand what you want. From the customer's point of view, what do you want to happen/what are you trying to build for them?
I want to recreate that page to enable/disable settings. I will probably keep them as leaving them as is but I will do stuff on my own instead
I am doing it for myself to automate things not the customer
You want to recreate the settings page in the Dashboard for managing payments that require confirmation? Are you using Connect and you want to do this for connected accounts?
not using connect just regular subscription/one time payments
So you want the people who subscribe to be able to decide if they, for example, get an email when a Subscription payment requires action to complete?
Yeea i'll probably seend them an email or something to complete it after 1 day probably then do more stuff like cancel or something
But you want to give your subscribers a toggle on your site so they can turn those emails on and off? Like you see in the Stripe Dashboard today, but for each subscriber individually?
To clarify, I'm trying to understand what you meant when you said, "I want to recreate that page to enable/disable settings."
I want to make my own webhook out of these.
I will leave stripe dashboard settings as is
but my webehook will do the same exact thing as both of those
But instead will do more
That's not how it works. If you leave the Subscription as-is for that first setting there will be no Stripe Event you can get a webhook for.
Same for leaving the Invoice as-is.
If the Subscription and Invoice don't change there's no Event.
i thought there was a subscription.updated event
subscription updated incomplete then do the following...
If you want to do things at those times (1 day after, 15 days after) you would need to listen for the initial failed payment attempt and then schedule something for 1 day after and 15 days after on your end.
Yep, that's what I described above. Listen to customer.subscription.updated or other Events, then start counting down the time on your end.
ok then on the dashboard how do i make something incomplete? 3DS and don't pay?
Subscriptions start as incomplete by default in most scenarios.
I'm still not entirely clear on exactly what you want for a trigger Event. Do you want all payment failures? Only those which require an action?
Something else?
For example, let's say I'm subscribed and billed on the 15th of every month. On my third month if my payment fails for insufficient funds does that count? Or do you only care about if the payment failed because authentication was required?
I already have a failed webhook copying Manage failed payments on that link so no I am already taking care of that literally copying what that page is doing
I care about incomplete anything. I want to literally copy that page screenshot for whenever something becomes incomplete
I think you're misunderstanding what "incomplete" means. What I think you really want to do is listen for invoice.payment_failed and then check the Invoice again in one day to see if it's been paid yet, and if not send and email. Then 14 days after that do something else if it still hasn't been paid.
To clarify, with the settings in your screenshot above, no Stripe object will have a status of "incomplete" or anything like that.
The text in the Dashboard is saying if the payment is incomplete do X, it's not saying an object will be labeled as incomplete.
The Invoice, for example, will have a status of open: https://stripe.com/docs/api/invoices/object#invoice_object-status
And your settings are explicitly leaving the Subscription as-is, so it won't change at all.
Does that make sense? 🙂