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 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器