App reviews, troubleshooting, and recommendations
Hello shopify community,
I am building a simple app, but I am having a problem with setting up the trial days.. I am using the latest node boilerplate where in i have to setup billing config upon installation.
after re-installl
Solved! Go to the solution
This is an accepted solution.
Hi @geobertz ,
You can achieve this by saving the shop id or unique id to your database. That means, when any users install your app you should save users shop id or unique id to your database table and create some more field for status(active/inactive), start date(installed date) and end date(date after 21 days).
For example :
Suppose person A install the app, same time you have to save user's(person A) shop id with status 'Active' and start date + end date(21 days).
After installation he notified with 21 trial days.
Next after some days like 10th day he uninstall the app status should change to 'Inactive' and update start date(current date) you will get remaining days and save these days(ex: 11 days)
Next time when he reinstall app again then check for shop id if it is true then update start date and calculate end date with remaining days which you already having.
Hope you get an idea, if you have any queries you can post here again.
Thanks....
This is an accepted solution.
Hi @geobertz ,
You can achieve this by saving the shop id or unique id to your database. That means, when any users install your app you should save users shop id or unique id to your database table and create some more field for status(active/inactive), start date(installed date) and end date(date after 21 days).
For example :
Suppose person A install the app, same time you have to save user's(person A) shop id with status 'Active' and start date + end date(21 days).
After installation he notified with 21 trial days.
Next after some days like 10th day he uninstall the app status should change to 'Inactive' and update start date(current date) you will get remaining days and save these days(ex: 11 days)
Next time when he reinstall app again then check for shop id if it is true then update start date and calculate end date with remaining days which you already having.
Hope you get an idea, if you have any queries you can post here again.
Thanks....
Hi thank you for your response.
I get the idea, so my theory is correct.. Ill definitely try this..
I have another question though, how do we make an app 100% FREE?
There is no option in billing API to make it FREE.. cant set 0$ as price. and more than 1000 days as trial days.
Hello @geobertz ,
Recently we launched custom pricing app and its free.
Login to your shopify partner account go to your app and select the option.
Please refer screen shot:
You can manage your app pricing here.
Thanks ......
Oh i see and just set billing to undefined right?
Thank you so much
Hi @oscprofessional ,
I also setup 14-days trial, but I don't know when trial ends, how can I update remain trial days in database? Do you have solution for this?
You have to check every time the merchant enters your app, compare current date and date of installation. You can redirect them to billing after the trial ends.
Hello, Can you please clarify one behavior?
Does Shopify handle it? I mean, every time the user uninstalls and reinstalls again, the trial day will apply again?
Example: The user used the app for 20 days and the app has 21 days trial, so If a user uninstalls and installs again, Shopify gives 21 days trial again, right?
Yep, it will will give them 21 days trial again.
That is why its important to save the initial installation date,
If they re-install, check your database if the store is already recorded with the initial installation date.
Compute how many days they still have for the trial, if they already used 21 days.. then you can redirect them to billing in short, they must have an active billing charge in order to proceed using the app
Goodluck!
Thank you very much for your quick response
Can you help me with currentPeriodEnd
If my application has 21 days of the free trial, what will be the value of the `currentPeriodEnd` field in the getCurrentSubscription query?
Without trial days, I will be equal to (for a monthly subscription): the subscription created date + 30 days, how about with trial days?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024