#shreyanshcactusglobal_api

1 messages ยท Page 1 of 1 (latest)

misty havenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262745017576067142

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

umbral mulch
#

hi there!

#

so you want the use to pay the first month, but then get another month free?

old pond
#

Yes that's correct.

umbral mulch
#

if so, after the Subscription is created and paid for, you can add a coupon to the subscription for one month off

old pond
#

Yes but the problem is, This isn't a scalable approach. I have numerous prices for different types of subscription. Creating and maintinaing coupon for each interval will go out of hand very easily. That's why i was thiking is there a way to build something that's scalable.

umbral mulch
#

I don't get which part is not scalable. create a single coupon that's 100% off for one month. Once the Subscription is active, update the Subscription with an API call to apply this coupon. for the next Invoice, the customer will have nothing to pay.

old pond
#

One month is a placeholder term. I have different prices that reoccur in Month, Quarter, Years and there are different types of prices as well.

So what i am trying to say is creating coupons for all these will create a lot of unnecessary overhead.

umbral mulch
#

the other option, is after the Subscription is created & paid, simply add a free trial to the Subscription, that ends after the end of the second month. this gives you more flexibility on when exactly you want the three trial to end.

old pond
#

The system will identify these both renewals as separate renewals.

Even in my system this will have incorrect entries as user having renewed twice. But the entire subscription was only ONE occurance.

1 + 1 as one subscription. With coupons this becomes 1 month paid subscription, 1 month free subscription.

The only reason i am concerned with this is because my system relies on webhooks recieved from stripe and we have built a lot of functionality based on this so we need to treat this whole period under 1 subscription. Rather than 2 renewals.

I hope i'm making sense.

umbral mulch
#

I gave you two options to achieve what you want (use coupons or add a free trial). unfortunately I don't think there's a third option. so you'll need to pick one and adapt your code so everything works.

#

there's actually a third option, but it's more complex: use Subscription schedule

old pond
#

Okay sorry for taking your time but do you think creating a phase like so would be a better option?

  1. 1st phase will normal price
  2. 2nd phase with coupon code for 1 month or whatever duration my prices has
umbral mulch
#

no worries, I'm here to help. yes that's definitely an option.

#

note that dealing with Subscription Schedule can be a bit tricky, that's why I usually recommend to use coupons.

old pond
#

The solution you were referring to with Subscription Schedule was something on the same lines that i mentioned?

umbral mulch
#

you mentioned phases, which is what you would set when using Subscription Schedules.

old pond
#

Do you know if instead of using coupon in subscription phase.

I could set the 2nd phase of a subscription as a trial entirely. That way i don't have to deal with coupons at all.

old pond
#

Cool, Thanks for your help.

umbral mulch
#

happy to help ๐Ÿ™‚