#Visser-Subscription

1 messages · Page 1 of 1 (latest)

old escarp
#

Hi, give me a few mins to grasp the context

minor epoch
#

sure tnx

old escarp
#

Okie, for your specific scenario of "first period of 7 days at 10$, next montly period at 40$ forever" You can have 2 approaches: with Schedule and without Schedule

#

Without Schedule: Simple create a 7-day trial Sub, and additionally create a separated 10$ Invoice for that 7 days

#

With Schedule: Create a Subscription first, then create a schedule from it (you are doing it, great!) But we will need to work on the error you have received

#

IMHO Without Schedule is easier

#

Schedule is for much more complicated usage, like you want it behave differently from next month, Something like: i.e. one month, half a month, then quarterly, then annually then finally monthly

minor epoch
#

can you explain the without schedule scenario? i think that i didn't understood it very well

old escarp
#

Sure. So you simple create a trial Subscription, set its trial period to 7 days, billing 40$ monthly

#

Then separately, you create an Invoice for $10 to the same customer

minor epoch
#

i can pay that invoice immediatly from cehckout?

old escarp
#

No, after Checkout, when you already have your customer's PaymentMethod

#

after Checkout you will receive a series of webhook event. That's where you can catch the PaymentMethod being used

minor epoch
#

yes i already do it with normal subscription

#

so i try to recap

#

i create a sub 40$ with a free trial perdiod of 7 days

#

and i gen that invoice of 10$

old escarp
#

yeah, using the same PaymentMethod you received from Checkout

minor epoch
#

but on heckout, the customer what pay?

#

40$?

old escarp
#

Sorry I didn't understand the last question

#

On Checkout, it will display as $40, trial 7 days

#

It won't mention $10. You would need to communicate to your Customer somehow. That's the disadvantage of this approach

minor epoch
#

but 40$ are charged after 7 days is it right?

old escarp
#

Like, before going into Checkout, from your own web service, display that "we will take $10 for first 7 days"

#

yes, correct

minor epoch
#

so i can write on checkout 10$, in real i subscribe customer to a 40$ sub that he can see after 7 days and with he's payment method i can pay the 10$ invoice immediatly

#

so the point of biew of customer is a 10$ paymenty

old escarp
#

immediately, yes they will only see $10

#

You can think Invoice as an adhoc way to bill your customer

#

Once you have their PaymentMethod, and communicated well to them, you can "invoice" them when you want

#

Make sure to communicate or they will dispute

minor epoch
#

and with schedule scenario what i'm doing wrong? can i post i little portion of code?

old escarp
#

For the schedule approach, the tricky point is that you need to specify the correct start time of the current phase

minor epoch
#

but it's a from_subscription and i don't specify the start_time

old escarp
#

After from_subscription, the schedule already has the current start_time of that Subscription. You need to specify that start_time to tell the Schedule "okay this is the timeframe I want you to change"

minor epoch
#

so i can get the start time from subscription and specify it on phase1?

#

is it possible to get the start_time from sub, isn't it?

old escarp
#

I think it's better to get the current start_time from the call when you create Schedule from_subscription

#

it should have a response saying what is current phase start_time and end_time

minor epoch
#

ok so from from_subscription call i get the start_time and on update i specify it for phase 1

#

is it right?

old escarp
#

yes!

minor epoch
#

ok i can try it only in a 3 or 4 hours, can you leave this thread open?

old escarp
#

Sure ~

minor epoch
#

thank you very much! i will tell you if I reach the goal

#

bye!