#robert
1 messages · Page 1 of 1 (latest)
Yeah, you can use Subscription Schedules to simulate this. You could also just use a regular subscription and set it to cancel after 10 months, though you would have to be extra careful to build guardrails for if they miss a payment.
There aren't really any products at Stripe that allow you to pay for a product in installments, so you would need to have your own custom code/logic for tracking this on your side, but you could still use Subscriptions and Subscription Schedules to emulate an installment plan
Subscription schedules look great! How would you handle this for a different price per user every time? Would we just have to programmatically create prices?
In rare cases, The Pacific charges less than the usual 1,000 USD per month. In these scenarios, they use price_data to create a single-use price. This example creates a 500 USD price, and charges monthly for 6 months:
is this relevant/what you'd do?
How would you handle this for a different price per user every time?
You could just update the Subscription with a new Price object, yeah. That being said, if you're going to be using different prices each month, it might be better to skip subscriptions altogether and just use Invoices
Ah sorry - the price is the same per user per month; just different for each customer.
You only need one Price object per customer then, which means you can choose any of the above mentioned solutions
So we use the API to create a new Price for every customer?
Yup!
Okay amazing thank you!
Is it possible to create a new Price object through the subscriptions#create api?
Yup! You would use the line_items hash: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay amazing thank you!