#jahirjje-laravel-subupdate
1 messages ยท Page 1 of 1 (latest)
hello, is your integration updating the Subscription? like doing something like sub.update()
For now I can create the subscription with a 7-day trial, adding a valid payment method, I would like to know how to manage the subscription once those 7 days of trial have passed
How is it that stripe notifies me if the payment was made and, failing that, what would be the status of the subscription?
๐ stepping in for @empty ingot as they need to step away. Are you using Webhooks @plucky sequoia?
No, not for now
Okay well that would be the recommended way to track the status here! Otherwise, you will likely need to retrieve the Subscription and check its status each time when a payment is due... and this doesn't mesh will with automatic retries if you are using those.
I'd recommend looking into Webhooks (https://stripe.com/docs/webhooks). Then you listen for customer.subscription.updated which will fire each time the Subsription status changes
The webhook will update my database?
No you would use your Webhook handler to update your database.
๐
cashier creates a table of subscriptions and one of subscription items in my database, could you tell me what each table works for?
Are you you asking the difference between a Subscription and Subscription Items?
yes
Sorry, busy discord today. So the Subscription is the overall Subscription which will give you the high level details (see properties here: https://stripe.com/docs/api/subscriptions). Versus a Subscription Item is for when you have multiple different prices/items for you Subscription, so more complex set ups, it gives you details about each piece of the Subscription. See: https://stripe.com/docs/api/subscription_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.