什么是 stripe webhook 来监听订阅项目删除的通知
What is the stripe webhook to listen to get notified about subscription item deletion
在我的用例中,我有多个计划在相同的时间间隔内添加为单个订阅下的订阅项目,如记录 here. Now when i cancel a single subscription item from a subscription, does stripe provide any webhook with particular event to notify that a subscription item is cancelled?. Read through all the webhooks events documented here 但找不到相关的计划。只能找到订阅创建和订阅删除的事件,但不能找到 subscription_item。
在 here 中读到,带有 pending_update
标签的 customer.subscription.updated
事件可用于获取有关创建 subscription_item 的通知,但无法找到对处理 subscription_item 删除。
您收听了 customer.subscription.updated
事件。
它在 Event 对象中包含一个 Subscription 对象,并带有“新”更新的 Subscription。它还将在响应中有一个 previous_attributes
散列,这将是为了更新订阅而更改的字段之间的差异。
例如如果我从订阅中删除订阅项,它会显示在 previous_attributes
哈希中。
在我的用例中,我有多个计划在相同的时间间隔内添加为单个订阅下的订阅项目,如记录 here. Now when i cancel a single subscription item from a subscription, does stripe provide any webhook with particular event to notify that a subscription item is cancelled?. Read through all the webhooks events documented here 但找不到相关的计划。只能找到订阅创建和订阅删除的事件,但不能找到 subscription_item。
在 here 中读到,带有 pending_update
标签的 customer.subscription.updated
事件可用于获取有关创建 subscription_item 的通知,但无法找到对处理 subscription_item 删除。
您收听了 customer.subscription.updated
事件。
它在 Event 对象中包含一个 Subscription 对象,并带有“新”更新的 Subscription。它还将在响应中有一个 previous_attributes
散列,这将是为了更新订阅而更改的字段之间的差异。
例如如果我从订阅中删除订阅项,它会显示在 previous_attributes
哈希中。