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

如何使用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.

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

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探