简体   繁体   中英

Stripe - Adjusting particular recurring payments

I am working on a project for a client, and need the ability to be able to change/adjust & skip payments for a user that is on a recurring monthly subscription.

For example let's say it's June, and the customer is subscribed to a $50 per month plan. How could I adjust the payment for August to be $30? I don't see any documentation around adjusting upcoming payments.

The only thought that comes to mind to implement this, is to run a scheduled function daily which checks a users account to see if their next payment should be more/less than the subscription amount. And then update their subscription back & forth via cron jobs.

Any other thoughts or how to implement, or know if there is a possible/standard way of doing this?

Thanks.

You'll want to either look into subscription schedules orup/downgrading subscriptions .

The answer that you need: You can control the time when the subscription actually starts (ie when Stripe will start billing the customer) by using the trial_end parameter in your subscription creation request. Simply set the value of the parameter to the timestamp of the exact time you wish Stripe to start automatically billing the customer.

https://stackoverflow.com/questions/44652329/how-to-start-a-subscription-in-stripe-with-delay#:~:text=You%20can%20control%20the%20time,start%20automatically%20billing%20the%20customer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM