#krishna1433-subscription-schedule

1 messages · Page 1 of 1 (latest)

dull surge
dull surge
#

Hi there,

  1. If this is the phase you are referring to https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-phases, this is the information that defines how the Subscription will behave within a period of time.

Before I continue to answer your other questions, I was wondering if you could share your business use case for us to advise you better please?

hazy depot
#

Thank you for your reply. My use case is i have to an amount collect in 10 installments. This amount is not divided equally but falls on same day of the month

#

Please ignore the first installment in this. It is collected as down payment.

stark prairie
#

for your situation though, since you have different amounts, you would probably need to set different phases.

hazy depot
#

Awesome. I did that. Can you please keep this chat unarchived. However I have few questions, please allow me to grab the request id

stark prairie
#

sure, i'll be here for now, but the thread will be automatically archived if there's no activity after a period of time

hazy depot
#

req_MAhhXWKq3sxtfr

Please find this request id, I'm having trouble here only 9 phases are being created

stark prairie
#

@hazy depot you don't need 9 phases. If you're charging $35.5 x 9 (months), what you would do is to use a Price which has $35.5 / month and define the below phase

      {
        items: [
          {
            price: 'price_...',
            quantity: 1,
          },
        ],
        iterations: 9,
      },
    ],
hazy depot
#

Sure, but I would be needing to make 10 iterations, the last iterations will have a different price

stark prairie
#

you would need 2 phases then

#

the first phase would be for $35.5/month (9 iterations), and the last one would be for $35.32/month. (1 iteration)

hazy depot
#

Okay, I will try to do this and get back thank you!

hazy depot
#

and what would be the billing cycle anchor

#

I am currently using automatic will that be fine

stark prairie
#

automatic should be fine, unless you have specific requirements

hazy depot
#

req_UrFX84enP2jpmW

#

how do i test subscription schedules? 😮 there are 9 iterations, does that mean there will be debit each month for 9 months and then the last one there will be a price update

stark prairie
#

it depends on how long you're willing to wait for the testing - one option is to do a $35.5/day Price to simulate what you would see

#

i would stick to doing 2 phases, and 1 iteration for each phase

hazy depot
#

req_UrFX84enP2jpmW

for this i have added two phases, one with 9 iterations and other with an end date

stark prairie
#

there isn't a way to speed up testing for a subscription schedule

#

that's why i would suggest testing with a shorter billing interval like daily just so you understand how it works

hazy depot
#

Okay

#

Our customer requirement is as such that it might make changes to price every month. So there is no other way to acheive this than using multiple phases

stark prairie
#

If your customer will pay a different price every month, i think it would be easier for you to simply invoice a customer instead and keep track of the remaining amount that the customer needs to pay on your own server

#

it really depends on what is the likelihood that your customer will pay a different price every month