#User subscriptions are not synced with user subscriptions in Stripe

14 messages · Page 1 of 1 (latest)

floral magnet
jade swallow
floral magnet
#

No

jade swallow
floral magnet
#

Not sure what you're asking here..? The docs tell you how to cancel a subscription. If you do that outside of Cashier, how would it know a cancellation was triggered?

jade swallow
floral magnet
#

Did you read the part I linked..?

jade swallow
#

Yes. I read about the ends_atpart in my database. However, I am not sure, if Laravel is using this date and then updating the subscription status

floral magnet
#

Well yeah, the docs say it does. I'd assume when you call the cancel method it would call the Stripe API to cancel that subscription and update the database accordingly. But that's the thing, you're using a library to do that for you, so does it really matter how that library does it? Cashier includes methods to get the status of the subscription, use those instead of manually looking in the DB?

jade swallow
floral magnet
jade swallow
#

But I have 1 record which is still been listed as: stripe_status active in the database even ends_at have been passed.

Cashier knows it is not active, cause it is not been fetched users active subscriptions which is good.
Everything is working fine and I am using Cahier to basically handle everything.

stripeCustomer
->subscriptions()
->active()