#jahirjje - Webhooks

1 messages ยท Page 1 of 1 (latest)

mellow peak
#

Hi ๐Ÿ‘‹

turbid ocean
#

i am using laravel, i dont know if WebhookReceived $event modify the structure, because i cant use the event

mellow peak
#

Did you code your own webhook listener?

turbid ocean
#

yes

mellow peak
#

Okay so why would the event structure be modified?

turbid ocean
#

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?

mellow peak
#

"to the database" - If this is your database then yes, that is what we intend by providing the data in the event

turbid ocean
#

excellent, thanks for your time ๐Ÿ‘

mellow peak
#

Sure thing, happy to help ๐Ÿ™‚

turbid ocean
#

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?

mellow peak
#

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

turbid ocean
#

dont worry, thanks for help ๐Ÿ‘

mellow peak
#

๐Ÿ‘

turbid ocean
#

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?

young estuary
#

๐Ÿ‘‹ 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?

turbid ocean
#

the next billing cycle renewal date

young estuary
#

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

turbid ocean
#

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?

young estuary
#

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.

turbid ocean
#

Thanks so much, I'll look ๐Ÿ‘