#jahirjje-laravel-subupdate

1 messages ยท Page 1 of 1 (latest)

empty ingot
#

hello, is your integration updating the Subscription? like doing something like sub.update()

plucky sequoia
#

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?

serene drift
#

๐Ÿ‘‹ stepping in for @empty ingot as they need to step away. Are you using Webhooks @plucky sequoia?

plucky sequoia
#

No, not for now

serene drift
#

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

plucky sequoia
#

The webhook will update my database?

serene drift
#

No you would use your Webhook handler to update your database.

plucky sequoia
#

excellent, I'll take a look at the documentation, thank you very much

#

๐Ÿ‘

serene drift
#

๐Ÿ‘

plucky sequoia
#

cashier creates a table of subscriptions and one of subscription items in my database, could you tell me what each table works for?

serene drift
#

Are you you asking the difference between a Subscription and Subscription Items?

plucky sequoia
#

yes

serene drift
#

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