{"action":"created","issue":{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/592","labels_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/592/comments","events_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/592/events","html_url":"https://github.com/laterpay/laterpay-wordpress-plugin/issues/592","id":57232999,"number":592,"title":"Introduce visible and invisible test mode","user":{"login":"drdla","id":135148,"avatar_url":"https://avatars.githubusercontent.com/u/135148?v=3","gravatar_id":"","url":"https://api.github.com/users/drdla","html_url":"https://github.com/drdla","followers_url":"https://api.github.com/users/drdla/followers","following_url":"https://api.github.com/users/drdla/following{/other_user}","gists_url":"https://api.github.com/users/drdla/gists{/gist_id}","starred_url":"https://api.github.com/users/drdla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdla/subscriptions","organizations_url":"https://api.github.com/users/drdla/orgs","repos_url":"https://api.github.com/users/drdla/repos","events_url":"https://api.github.com/users/drdla/events{/privacy}","received_events_url":"https://api.github.com/users/drdla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/labels/Enhancement%20to%20Feature","name":"Enhancement to Feature","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"yastapenko-ScnSoft","id":7733775,"avatar_url":"https://avatars.githubusercontent.com/u/7733775?v=3","gravatar_id":"","url":"https://api.github.com/users/yastapenko-ScnSoft","html_url":"https://github.com/yastapenko-ScnSoft","followers_url":"https://api.github.com/users/yastapenko-ScnSoft/followers","following_url":"https://api.github.com/users/yastapenko-ScnSoft/following{/other_user}","gists_url":"https://api.github.com/users/yastapenko-ScnSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yastapenko-ScnSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yastapenko-ScnSoft/subscriptions","organizations_url":"https://api.github.com/users/yastapenko-ScnSoft/orgs","repos_url":"https://api.github.com/users/yastapenko-ScnSoft/repos","events_url":"https://api.github.com/users/yastapenko-ScnSoft/events{/privacy}","received_events_url":"https://api.github.com/users/yastapenko-ScnSoft/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/milestones/11","labels_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/milestones/11/labels","id":947174,"number":11,"title":"v0.9.11","description":"Complete sales and time pass analytics.","creator":{"login":"drdla","id":135148,"avatar_url":"https://avatars.githubusercontent.com/u/135148?v=3","gravatar_id":"","url":"https://api.github.com/users/drdla","html_url":"https://github.com/drdla","followers_url":"https://api.github.com/users/drdla/followers","following_url":"https://api.github.com/users/drdla/following{/other_user}","gists_url":"https://api.github.com/users/drdla/gists{/gist_id}","starred_url":"https://api.github.com/users/drdla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdla/subscriptions","organizations_url":"https://api.github.com/users/drdla/orgs","repos_url":"https://api.github.com/users/drdla/repos","events_url":"https://api.github.com/users/drdla/events{/privacy}","received_events_url":"https://api.github.com/users/drdla/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":16,"state":"open","created_at":"2015-01-22T17:23:58Z","updated_at":"2015-02-18T15:55:58Z","due_on":"2016-02-16T23:00:00Z","closed_at":null},"comments":3,"created_at":"2015-02-10T20:38:22Z","updated_at":"2015-02-20T11:51:40Z","closed_at":null,"body":"Our test mode is currently designed in a way that allows merchants without a proper staging installation to integrate and test LaterPay without that being visible to their users.\r\n\r\nThere is also a second option which is hardly described that allows making the plugin behave like it was in live mode while it really is working against the LaterPay sandbox environment (as can be seen on laterpaydemo.com). The trick here is to enter sandbox API credentials in the live API credentials inputs, leave the plugin in test mode, but swap the sandbox and live API URLs on the advanced settings page.\r\n\r\nIt would be much better to\r\n- remove the possibility to edit the API URLs from the advanced settings page and\r\n- add an option to the Appearance tab that lets the admin choose between \"invisible test mode\" and \"visible test mode\"\r\n\r\n\"Invisible test mode\" behaves like our current test mode: LaterPay is not visible at all to visitors and purchase links only trigger an alert instead of rendering the purchase dialog.\r\n\r\n\"Visible test mode\" behaves like an installation in live mode. It should communicate with the sandbox environment though. And because our sandbox environment does not know about any merchants registered in the live environment, it must use the sandbox API credentials when talking to the sandbox environment endpoints.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/comments/75226820","html_url":"https://github.com/laterpay/laterpay-wordpress-plugin/issues/592#issuecomment-75226820","issue_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/592","id":75226820,"user":{"login":"AliaksandrVahura-ScienceSoft","id":5525861,"avatar_url":"https://avatars.githubusercontent.com/u/5525861?v=3","gravatar_id":"","url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft","html_url":"https://github.com/AliaksandrVahura-ScienceSoft","followers_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/followers","following_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/following{/other_user}","gists_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/subscriptions","organizations_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/orgs","repos_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/repos","events_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/events{/privacy}","received_events_url":"https://api.github.com/users/AliaksandrVahura-ScienceSoft/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T11:51:40Z","updated_at":"2015-02-20T11:51:40Z","body":"Reviewed, see my comments on js, except of that other looks fine."}}