I'm going to integrate an extension with License API and it will have monthly fee (subscription charged per month). As I understand so far I will need to make verify the license call and check createdTime value, and if it is greater than 1 month I will need to show link to web store. And after if user will pay subscription in next call createdTime will be changed to current date (so, createdTime will show last payment date, will not?), am I right? I've searched the answer in documentation but so far could not find any info about it..
相关问题
- How does same-domain policy apply to background sc
- YouTube Data API v3 allowed referers for browser a
- Chrome Extension: How can I get global settings in
- Keep receiving Login Required error when trying to
- chrome.runtime.reload blocking the extension
相关文章
- Progressive web app(PWA) vs Electron vs Browser ex
- chrome.runtime.getURL vs. chrome.extension.getURL
- Will this hotkey work for Mac users?
- Chrome extension permission for “about:blank” page
- getElementById not working in Google Chrome extens
- Google Chrome extension: How to find out if a user
- How can my Chrome plugin disable itself via Javasc
- How to package Firefox and Chrome extensions
According to documentation, the
createdTime
value contains:The
createdTime
value indicates the moment the user first installed the extension and it never changes, even if the user uninstalls and re-installs the extension, or changes from free trial to paid subscription.You can check the
accessLevel
value to see if the user has paid the subscription or not:"FULL"
indicates that the subscription is paid and active,"FREE_TRIAL"
indicates that the user hasn't paid. In the latter case, you can compare thecreatedTime
value to the current date to check if the user is still within the free-trial period or not.