douchengfei3985 2012-12-12 14:32
浏览 197
已采纳

如何使用PHP中的API在Stripe付款中降级/升级计划?

I have already subscribed to a plan. Now I want to downgrade it. So should I unsubscribe the current plan? What will be the process of refunding the remaining amount?

I have created customer and subscribed customer to plan while creating customer. I have not used Charge class. To refund amount do we need charge_id?

  • 写回答

1条回答 默认 最新

  • douci1541 2012-12-13 08:11
    关注

    I have already subscribed to a plan. Now I want to downgrade it. What will be the process of refunding the remaining amount?

    From the API docs:

    POST https://api.stripe.com/v1/customers/{CUSTOMER_ID}/subscription

    Subscribes a customer to a plan, meaning the customer will be billed monthly starting from signup. If the customer already has an active subscription, we'll update it to the new plan and optionally prorate the price we charge next month to make up for any price changes.

    It's pretty clear that this is what you want to do.

    To refund amount do we need charge_id?

    While you probably don't need to refund it yourself, given the way that changing the subscription works, the docs on refunding say that you do need the charge ID.

    Given that the answers to your questions were entirely contained within the documentation, I highly advise you to review the documentation before asking your next question.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?