@stripe Is "data.object.period_end" the correct value of the new subscription end date when handling the "invoice.payment_succeeded" event? A little confused on which value I should be storing.
`period_end` doesn't necessarily refer to the period for which the customer is billed, so that can be confusing[0]. Can you give us a bit more context on what you're trying to achieve so we can point you in the right direction? [0]https://stripe.com/docs/sigma/billing#working-with-invoice-dates-and-periods …
-
-
Sure. Monthly and yearly billing subscriptions. When the customer pays I want to update my internal record with when the new billing period / subscription ends. I was under the impression Stripe has an “end date” for when the current period ends / next period is billed.
-
Thanks for clarifying. You may actually want to retrieve "current_period_end" for the associated Subscription when the "invoice.payment_succeeded" event occurs. This should provide you the correct period end details. Here's more on this: https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.