-
Notifications
You must be signed in to change notification settings - Fork 31
Description
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.