#Asad

1 messages · Page 1 of 1 (latest)

tawny ridgeBOT
steep sage
#

Hi there!

bronze nacelle
#

i want the latest one

#

through customer_id

#

list returns me list of subscriptions of the user

steep sage
#

I think the latest one would be the first one in the list.

bronze nacelle
#

can you please confirm?

#

and how i can update the next billing date of subscription?

near quail
#

👋 taking over for my colleague. Let me catch up.

#

all lists are ordered by creation date desc

bronze nacelle
#

so the first one will be the latest right?

near quail
near quail
bronze nacelle
# near quail what is the scenario?

if a user had signup with Yearly premium package and lets say after 2 days he just upgrades his membership to paid. then the next billing date should be at 1 year + 12 days (left from trial)

near quail
#

so what you're saying is that you want to keep the subscription in trial mode for whatever time is left from that, and then just want to change the price?

bronze nacelle
#

no no

#

if a user is in the trial and after 2 days he just paid for the subscription then i want to add remaining trial days(in this case 12 days) and the subscription interval (which is year).i want to set the next billing date to 1 year + 12 days.

near quail
#

in Stripe it's not possible to have a Billing period more than a year

#

which means that you need to keep the subscription in trial mode and then change it to paid after 12 days which means that the next billing cycle would be eventually in 1y+12d

bronze nacelle
#

how can i do this? as in my current scenario i am using price_........ (price_id for trial ) and then when it upgrades payment is done through pri_..... (paid price_id) so stripe charge at instant how i can tell stripe the user still has trial so cut the payment after the trial.

#

as trial is already activated and now he chooses paid subscription with different price_id

near quail
#

in Stripe we don't encourage using prices for trial periods

#

but in all cases if you wish to do so, when you do update to the new price you can add a trial period of x days (e.g. 12) in order to give them the extra amount of days

bronze nacelle
#

in the next price (the paid one)?

#

should i add trial period in paid price_id?

near quail
bronze nacelle
#

so what about the charge?

#

would it be deducted on instant or it'll be done after trial?

near quail
#

after trial if you leave it as is

bronze nacelle
#

let's say i've added 12 days in trial, what will happened after 12 days? did customer will be charged again?

near quail
#

if you change with a trial period, the customer won't be charged until the end of the trial period

bronze nacelle
near quail
#

one thing you can do is to create a Customer Credit Balance (either via Checkout Session or with Payment Intent) https://stripe.com/docs/billing/customer/balance which means that the customer will pay upfront and then on the day of the invoice, the amount will be deducted automatically from the balance

Learn how to use the customer credit balance.

bronze nacelle
#

that's much complicated.

near quail
#

not really, it's easy to create a Customer Credit Balance

#

in all cases these are the only options we can provide you for now

bronze nacelle
#

i got one more question here

near quail
#

yes sure

bronze nacelle
#

how i can send email through stripe to customer when they update to a new plan or made a payment?

near quail
#

in test mode we don't send emails

bronze nacelle
#

so when it'll be live email will be send automatically?

near quail
#

yes upon successful payments

bronze nacelle
#

great!