I'm developing my first Python plugin for a 3D application.
What I'm looking to do
I would like users who've purchased a subscription to the plugin from my Wordpress/WooCommerce web site to log in to the plugin with the user name and password from my web site. The plugin would then send a REST request to see if the user's subscription is valid. I have a few questions about how this is done if anyone with experience can advise:
- It seems like I would need to store an OAuth's Consumer key & secret with Read-only privilege on the client's computer for requesting a REST response. The main plugin file will be encrypted. Should I store it there or should I consider another method?
- I'd imagine I'd need to either require an internet connection for the plugin to work or create a token somehow that stopped usage if the user cancelled their subscription. The WooCommerce REST result is JSON. How would I generate such a token?
Any guidance would be so helpful. Thank you!