{"action":"opened","issue":{"url":"https://api.github.com/repos/CriptoPay/CriptoPay_API_PHP/issues/1","labels_url":"https://api.github.com/repos/CriptoPay/CriptoPay_API_PHP/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CriptoPay/CriptoPay_API_PHP/issues/1/comments","events_url":"https://api.github.com/repos/CriptoPay/CriptoPay_API_PHP/issues/1/events","html_url":"https://github.com/CriptoPay/CriptoPay_API_PHP/issues/1","id":91239912,"number":1,"title":"Errores en uso de la definición SERVIDOR","user":{"login":"ehooo","id":709565,"avatar_url":"https://avatars.githubusercontent.com/u/709565?v=3","gravatar_id":"","url":"https://api.github.com/users/ehooo","html_url":"https://github.com/ehooo","followers_url":"https://api.github.com/users/ehooo/followers","following_url":"https://api.github.com/users/ehooo/following{/other_user}","gists_url":"https://api.github.com/users/ehooo/gists{/gist_id}","starred_url":"https://api.github.com/users/ehooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehooo/subscriptions","organizations_url":"https://api.github.com/users/ehooo/orgs","repos_url":"https://api.github.com/users/ehooo/repos","events_url":"https://api.github.com/users/ehooo/events{/privacy}","received_events_url":"https://api.github.com/users/ehooo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T12:38:01Z","updated_at":"2015-06-26T12:38:01Z","closed_at":null,"body":"Se usa SERVIDOR en: https://github.com/CriptoPay/CriptoPay_API_PHP/blob/master/src/CriptoPay_Cliente_API_Cifrado.php#L65 mientras que en: https://github.com/CriptoPay/CriptoPay_API_PHP/blob/master/src/CriptoPay_Cliente_API.php#L59 el servidor esta hardcodeado.\r\n\r\nAdemás debería de hacer se un \"define\" o un \"defined\" antes de usar esa definición para eviar errores en ejecución:\r\n```\r\nif(!defined(\"SERVIDOR\")){\r\n  define(\"SERVIDOR\", \"http://api.cripto-pay.com/\")\r\n  if(defined(\"CIFRADO\") && CIFRADO)\r\n    define(\"SERVIDOR\", \"https://api.cripto-pay.com/\")\r\n}\r\n```"}}