【发布时间】:2015-02-14 04:12:19
【问题描述】:
假设用户想取消他们的订阅,所以我发出这样的命令:
stripe_subscription.delete(at_period_end: true)
但后来——在期限结束之前——用户改变了主意。我可以拨打电话以撤消预定的取消吗?
如果没有,最好的实现方式是什么?我最好的猜测是这样的:
new_subscription = stripe_customer.subscriptions.create(plan: stripe_subscription.plan.id, trial_end: stripe_subscription.current_period_end)
stripe_subscription.delete() # if permitted
self.stripe_subscription = new_subscription
save!
有什么更好的办法吗?
【问题讨论】:
标签: stripe-payments