#Visser-Subscription
1 messages · Page 1 of 1 (latest)
sure tnx
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
can you explain the without schedule scenario? i think that i didn't understood it very well
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
i can pay that invoice immediatly from cehckout?
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
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$
yeah, using the same PaymentMethod you received from Checkout
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
but 40$ are charged after 7 days is it right?
Like, before going into Checkout, from your own web service, display that "we will take $10 for first 7 days"
yes, correct
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
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
and with schedule scenario what i'm doing wrong? can i post i little portion of code?
For the schedule approach, the tricky point is that you need to specify the correct start time of the current phase
but it's a from_subscription and i don't specify the start_time
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"
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?
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
ok so from from_subscription call i get the start_time and on update i specify it for phase 1
is it right?
yes!
ok i can try it only in a 3 or 4 hours, can you leave this thread open?
Sure ~