#jahirjje - Webhooks
1 messages ยท Page 1 of 1 (latest)
Hi ๐
You can see the structure of our event object in our API reference docs here:
https://stripe.com/docs/api/events/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i am using laravel, i dont know if WebhookReceived $event modify the structure, because i cant use the event
Did you code your own webhook listener?
yes
Okay so why would the event structure be modified?
sorry, it's not modified, it's the original laravel listener
I already found my mistake, thanks
in the handle I can make modifications to the database with the values contained in the event?
"to the database" - If this is your database then yes, that is what we intend by providing the data in the event
excellent, thanks for your time ๐
Sure thing, happy to help ๐
hello, me again, I have doubts about the subscription table that laravel cashier creates for me, my question is, if I offer monthly subscriptions, should I only have one subscription record per user that is updated every month, or should I create a new record per month?
Unfortunately I cannot really help with Laravel Cashier. It's code I know nothing about. However, a Subscription is one record that creates recurring Invoices and Payments
dont worry, thanks for help ๐
๐
I would like to offer my clients the possibility of updating their subscription between a monthly and semi-annual plan, what is the behavior of the subscription in that case, update the product and the expiration date, or make a new registration?
๐ Hopping in - what do you mean by the expiration date? Are you referring to a cancellation date? Or maybe the next billing cycle renewal date?
the next billing cycle renewal date
Gotcha - so when you update a subscription from a monthly -> semi-annual plan that immediately resets the billing cycle, so the next renewal date gets immediately updated
Excellent, thank u
Could it be configured that even if the user changes the subscription, he ends the current plan on the established date, and until that moment he starts the new plan?
If you want to have the monthly plan finish it's current cycle and THEN transition to the semi-annual plan, the only way to do so would be through using Subscription Schedules.
I'd suggest reading through the general documentation here (https://stripe.com/docs/billing/subscriptions/subscription-schedules) and then also take a look at some of the use cases here (https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases)
Thanks so much, I'll look ๐