Reputation: 588
TL;DR If this question doesn't make sense, please check the following video explanation: https://www.youtube.com/watch?v=9o2KhiBf1lY
I created a Chrome extension and followed the directions here: https://developer.chrome.com/webstore/one_time_payments
In the drop-down, I changed it to a subscription system with a free trial.
And my Chrome extension successfully uses the License API to check the payment status.
But now I'm wondering:
You might be thinking that I have to use the Payments API, but the documentation says:
If the trial is expired, you can direct the user to the web store listing to purchase the item.
Why does it say to direct the user to web store? If I go there, it just says to install the chrome extension, there's no option to pay for it.
And how can it know when the free trial has expired? I never configured a value for it and there's no "free trial duration" specified in the docs.
Meanwhile, the Payments API makes it clear that it's for in-app purchases with SKUs. If this is the only way to accept payment, what's the purpose of that pricing configuration that I set up above?
Thank you for your help.
Upvotes: 0
Views: 553
Reputation: 5118
You have all the answers in the documentation. Read it carefully.
You decide the length of the trial period. In your extension's code, when you check the user's license, it will reveal when your extension was first installed. Compare that with the current date to determine if the user is still within the trial period or not.
The trial and the paid extension are the same, both installed from Chrome's Web Store. If the purchase button doesn't appear to you may be because you are the developer.
In the documentation you have sample code to request the license and check the trial period.
Upvotes: 1