Immediately charge for subscription changes

后端 未结 4 787
梦谈多话
梦谈多话 2020-12-11 03:03

We are using Stripe payment processing for our customer\'s subscriptions. When users change plans, we want them to be charged immediately for the prorated difference. Stripe

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 03:18

    You can use webhooks in Stripe. After creating an invoice, you can charge the invoice right away (invoice now). If the invoice payment fails, you can use a webhook to rollback to the old account.

    Check this guide for more information about Stripe Subscriptions: https://www.truespotmedia.com/testing-webhooks-in-stripe-with-php/

提交回复
热议问题