Does Spark track a trial period internally or via Stripe?
Does Spark track a trial period internally or via Stripe? I see a trial field in the user table, but I'm not sure if Spark is tracking that or if that is derived from the Trial Date of the Stripe plan.
You can check that if you create a user with a stripe test account.
Check stripe and you will find it in stripe.
Don't be confused: it is also mirrored in the spark database but the stripe data takes precedence (e.g. if you manually overwrite your local database) - the trial always end when it ends on spark (there is a webhook fired)
@ralphmrivera stripe uses cashier. So it doesn't add anything on top of that that's different. Cashier has limited calls. It expects you to sync plans etc. only calls to stripe is sign up, cancel and change plans.
Generally one would listen for web hooks from stripe if any changes are made. Same as handling failed reacurring charge or you use stripes dash board to modify something there, you can listen for plans changes and additions coupons etc. . If you wanted to manually update users trial in your app you'll have to code a method to do that. Their API docs are actually really good. Unless I only need subscriptions I generally just use stripes php sdk and create a class to wrap their methods into a more laravel type syntax and keep it out of the controller.