-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Automatically use Live/Test mode keys #100
Comments
This sounds quite complicated. But I like the general idea: support both live and test mode, so configuration is one-time. |
If you don't ask for PROD urls, how will you decide in plugin code, when to use Live Mode Keys and when to use Test Mode keys? |
Maybe a specific tag on certain products that marks them as "Test" products? |
That will make the decision of using Test Mode / Live Mode keys product dependent, isn't it? |
The advantage of using PROD Urls is that it is not going to change very often, if at all it changes. And moreover, it uniquely identifies when the Live Mode keys should be used. Any thoughts? |
@captn3m0 May I suggest that you provide a simple drop down / radio button to select LIVE / Test Mode? |
Currently the plugin only accepts 1 set of Key ID and Key Secret. So we can either configure it to use Test mode keys or Live mode keys.
When we backup our site and restore it on different environment we need to remember to change the keys. If we fail to do so wrong keys get used.
To avoid this problem I'm proposing this feature:
Allow user to configure both Test Mode keys and Live Mode keys in the plugin settings. (Currently there are only 2 fields: Key ID and Key Secret. Instead of that there should be 4 fields namely Test Mode Key ID, Test Mode Key Secret, Live Mode Key ID and Live Mode Key Secret.)
Along with this, ask for the URLs where the Live Mode keys should be used. (Note there could be multiple URLs where live mode keys should be used.)
For any URLs that are not listed above, Test Mode keys should be used.
This way it will be one time activity to configure the test mode, live mode keys along with the URLs. Once that is done, no matter how many times we backup / restore the site across environments, the right set of keys will automatically get used.
The text was updated successfully, but these errors were encountered: