#ahjaydog - Subscriptions

1 messages · Page 1 of 1 (latest)

chrome birch
#

Hello! To clarify, you want to get Subscription status in a webhook, correct? When do you want to get that exactly?

gentle coral
#

I just want to recreate those things but do a bit more

chrome birch
#

That Event will fire whenever an Invoice payment requires further action to complete.

gentle coral
#

ok so if it is incomplete it means requires action?

chrome birch
#

No.

gentle coral
#

the invoice object or charge object becomes incomplete?

chrome birch
#

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?

gentle coral
#

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

chrome birch
#

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?

gentle coral
#

not using connect just regular subscription/one time payments

chrome birch
#

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?

gentle coral
#

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

chrome birch
#

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."

gentle coral
#

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

chrome birch
#

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.

gentle coral
#

i thought there was a subscription.updated event

#

subscription updated incomplete then do the following...

chrome birch
#

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.

gentle coral
#

ok then on the dashboard how do i make something incomplete? 3DS and don't pay?

chrome birch
#

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?

gentle coral
#

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

chrome birch
#

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.

#

And your settings are explicitly leaving the Subscription as-is, so it won't change at all.

#

Does that make sense? 🙂

gentle coral
#

so the invoice will be open status only, not failed, past due, unpaid? Incomplete could be any of those?

#

I see there is an incomplete_expired too

chrome birch
#

Yeah, that status does not apply to this situation.

#

The Invoice may be past due depending on your other Dashboard settings under Manage failed payments

#

It depends on if you have retries enabled or not and what happens after those retries are attempted.