Is the customer.subscription.updated event raised when a subscription is renewed?

前端 未结 2 672
孤独总比滥情好
孤独总比滥情好 2021-02-13 03:38

I\'m confused about why Stripe\'s documentation suggests the customer.subscription.updated event is not fired when I believe it should:

  • A Stripe
2条回答
  •  情歌与酒
    2021-02-13 03:46

    customer.subscription.updated is triggered when current_period_start and current_period_end change. These represent the billing period.

    When invoice.payment_succeeded happens, it's there that you must update the information on your side (e.g.: subscription period): https://stripe.com/docs/subscriptions/guide#step-3-sync-with-your-site

    Also more info here: https://support.stripe.com/questions/what-events-can-i-see-when-a-subscription-is-renewed

提交回复
热议问题