#twiddlecoding

1 messages · Page 1 of 1 (latest)

jolly karmaBOT
shut wagon
#

Can you share the subscription ID (sub_xxx) of the scenario you described?

eternal pier
#

Yes, hang on

#

sub_1OhIOtG0R9s4x2g4nzutQ9ta

shut wagon
#

Where did you see that the subscription has ended? The subscription is still active and will only end at current billing cycle ends. The invoices have all made successfully, so the subscription wouldn't be in past_due status

eternal pier
#

The subscription got a new current_end_date before the invoice was paid

#

To me that is unexpected behaviors

shut wagon
#

Which specific event ID (evt_xxx) that your system listened and the field that you're looking at? current_end_date isnt' a field in Subscription object ?

eternal pier
#

evt_1OmN5XG0R9s4x2g4uNByGel8

#

as you can see, this subscription update prolongs the current_period_end, but at that point, no payment had been made

#

Maybe you could point me to a guide on how and when to provision access with a subscription service

#

I think I read somewhere in your docs that I should look at the invoice.paid webhook when provisioning access. But I can't find it anymore. Maybe you have changed the recommended way.

jolly karmaBOT
eternal pier
#

Thats how I have done my implementation

proper ferry
eternal pier
#

I see

#

What if I want to provide the user access to their subscription features until their subscription status is canceled?

#

Like, if their payment has failed or if, like in this case, they need to update some payment details

#

They still expect access to their subscription

proper ferry
#

Then provision access based on the status field on the subscription and only remove it when you get customer.subscription.deleted event

eternal pier
#

Are there downsides to using that approach compared to the timestamp approach that you recommend in the docs?

proper ferry
#

Yeah, they'd have access to your service/product even if they have unpaid invoices and the subscription is past_due

proper ferry
eternal pier
#

I see