#idhruv

1 messages · Page 1 of 1 (latest)

pale stoneBOT
covert mulch
onyx meadow
#

Hi there, if the same transfer_data applies to every phases, you should specify it under the default_settings.

covert mulch
#

okk

#

that is right, same T_D applies to all phases

covert mulch
#

hey, i created new thread thinking that it is different topic. but no problem.

onyx meadow
#

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?

covert mulch
#

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

onyx meadow
#

OK, so basically there's only one phase in the schedule and when the schedule is released when the phase ends

covert mulch
#

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

onyx meadow
#

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

covert mulch
#

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

onyx meadow
#

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?

covert mulch
#

I only want to collect one-month fee right now (in 2022), yes!

onyx meadow
#

Got it. Here's my suggestion

covert mulch
#

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

onyx meadow
#
  1. Create a one-time price, and use this to collect the first month deposite via invocing or checkout
  2. Create a subscription schedule with two phase
    • Phase 1 for the first month Create a coupon with 100% and set its duration to once, apply this coupon in the first phase so that the customer doesn't need to pay for 1st month
  • Phase 2 for the 2nd month - 6th month, without the discount coupon
covert mulch
#

awesome

#

any supporting documentation if you can link me it will be wonderful

onyx meadow
#

I don't have a doc that specific for this, which part do you need explanation?

covert mulch
#

a doc based on how to modify phases inside sub_Sch like you mentioned

#

but i will try to research more. thanks

onyx meadow
#

The flow that I described above doesn't involve modify, you can define the phases when creating the schedule.

covert mulch
#

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

onyx meadow
covert mulch
#

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?

onyx meadow
#

It won't charge the customer automatically. You can use invoicing or checkout (recommened) to collect payment from your customer

covert mulch
#

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.

onyx meadow
#

So you should create invoice items first and then invoice.

covert mulch
#

okk, taking a closer look. thanks