#idhruv
1 messages · Page 1 of 1 (latest)
Hi there, if the same transfer_data applies to every phases, you should specify it under the default_settings.
Are there any changes in the phases? It looks like a normal subscription to me and I don't see a need to use schedule. Maybe I'm missing something but can you share with me more context?
there are no changes in phases, and we are using subscriptions schedule because we also give an option to our users to make booking on a future date which normal subscriptions don't support
so far the system works really well for us
OK, so basically there's only one phase in the schedule and when the schedule is released when the phase ends
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#start-subscription-future here's how you shall do it
no no , there can be N phases. really! for e.g. user can book for N months
but let's say if they book for 6 months, first month amount should be immediately cut and we should get the acknowledgement for that
and charges for the rest 5 months should continue with subscription basis depending on which dates are configured
only condition here is that it should be future date subscription and not current date
If there's no changes I don't think you need to use phases. If you just want to cancel the subscription in 6 months, you can just set iterations to 6 in the first phase(https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-iterations), and set the end_behavior to cancel
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 i got that, however my use case is still different. What if there are 6 iterations for a future date subscription schedule that starts on 7th jan 2050, and I want to charge the customer right now for the 1 month, and keep the rest 5 months on subscription basis
Cancellation as you mentioned in your answer is already in effect, my question is quite different though
OK. so you want to collect a one-month deposit now (in 2022), and your customer is going to use your service for 6 month starting 7th Jan 2050 with first month (7 Jan - 7 Feb 2050) for free, am I right?
I only want to collect one-month fee right now (in 2022), yes!
Got it. Here's my suggestion
basically, whether to consider this deposit or a permanent fee will be decided by our service policy though. We really don't want Stripe to treat this fee as only temporary Deposits of some kind
- Create a one-time price, and use this to collect the first month deposite via invocing or checkout
- Create a subscription schedule with two phase
- Phase 1 for the first month Create a coupon with 100% and set its
durationtoonce, apply this coupon in the first phase so that the customer doesn't need to pay for 1st month
- Phase 1 for the first month Create a coupon with 100% and set its
- Phase 2 for the 2nd month - 6th month, without the discount coupon
I don't have a doc that specific for this, which part do you need explanation?
a doc based on how to modify phases inside sub_Sch like you mentioned
but i will try to research more. thanks
The flow that I described above doesn't involve modify, you can define the phases when creating the schedule.
okay and for this point: Create a one-time price, and use this to collect the first month deposite via invocing or checkout
how to create one-time price and make the checkout? I already know how to make prices though
I see. The one-time price here means a price without recurring (https://stripe.com/docs/api/prices/create#create_price-recurring), so its type is one_time (https://stripe.com/docs/api/prices/object#price_object-type)
once i create pricing object will it auto charge the customer? or how should I charge the customer based on this pricing object. Do I need to use this with other api's like invoicing?
It won't charge the customer automatically. You can use invoicing or checkout (recommened) to collect payment from your customer
i am trying to follow this document on invoice, but I dont see anywhere how to create invoice based on a price object in docs.
https://stripe.com/docs/invoicing/integration/quickstart you can get started here
So you should create invoice items first and then invoice.
okk, taking a closer look. thanks