{"action":"created","issue":{"url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/1","labels_url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/1/comments","events_url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/1/events","html_url":"https://github.com/Cyber-Duck/white-opencart/issues/1","id":55609173,"number":1,"title":"Non backwards-compatible changes to the White API","user":{"login":"yazinsai","id":1846034,"avatar_url":"https://avatars.githubusercontent.com/u/1846034?v=3","gravatar_id":"","url":"https://api.github.com/users/yazinsai","html_url":"https://github.com/yazinsai","followers_url":"https://api.github.com/users/yazinsai/followers","following_url":"https://api.github.com/users/yazinsai/following{/other_user}","gists_url":"https://api.github.com/users/yazinsai/gists{/gist_id}","starred_url":"https://api.github.com/users/yazinsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yazinsai/subscriptions","organizations_url":"https://api.github.com/users/yazinsai/orgs","repos_url":"https://api.github.com/users/yazinsai/repos","events_url":"https://api.github.com/users/yazinsai/events{/privacy}","received_events_url":"https://api.github.com/users/yazinsai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T12:00:29Z","updated_at":"2015-01-27T14:54:39Z","closed_at":null,"body":"Hi, thank you for taking the time to make this plugin!\r\n\r\nWe've recently integrated with a new banking provider and had to make some non-backwards compatible changes with our API. \r\n\r\nWe'll be happy to help you update the plugin to address these changes. \r\n\r\nMost notably:\r\n1. When creating a token, we now pass the open key in the Authentication Header and not as a parameter.\r\n2. The `card` parameter is no longer nested in the token request\r\n3. Charge amounts now use cents (or the smallest currency unit) instead of decimals. (e.g. `amount=1000` is interpreted as `$10.00`)\r\n\r\nYou can find the latest API documentation at the following link: https://whitepayments.com/docs/api\r\n\r\nHere's an example of how to create a charge in PHP, using the new API:\r\n\r\n```php\r\n<?php\r\n# Step 1: Create a customer from the card details\r\nrequire_once(\"vendor/autoload.php\");\r\nWhite::setApiKey(\"test_sec_k_886a1e89b2c0abce479bf\"); // Secret key\r\n\r\n$customer = White_Charge::create(array(\r\n  'description' => \"Amember customer\",\r\n  'card' => array(\r\n    'number' => \"4242424242424242\",\r\n    'exp_month' => 12,\r\n    'exp_year' => 2015,\r\n    'cvc' => '123'\r\n    )\r\n  ));\r\n```"},"comment":{"url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/comments/71660214","html_url":"https://github.com/Cyber-Duck/white-opencart/issues/1#issuecomment-71660214","issue_url":"https://api.github.com/repos/Cyber-Duck/white-opencart/issues/1","id":71660214,"user":{"login":"Ben-Speakman","id":892142,"avatar_url":"https://avatars.githubusercontent.com/u/892142?v=3","gravatar_id":"","url":"https://api.github.com/users/Ben-Speakman","html_url":"https://github.com/Ben-Speakman","followers_url":"https://api.github.com/users/Ben-Speakman/followers","following_url":"https://api.github.com/users/Ben-Speakman/following{/other_user}","gists_url":"https://api.github.com/users/Ben-Speakman/gists{/gist_id}","starred_url":"https://api.github.com/users/Ben-Speakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ben-Speakman/subscriptions","organizations_url":"https://api.github.com/users/Ben-Speakman/orgs","repos_url":"https://api.github.com/users/Ben-Speakman/repos","events_url":"https://api.github.com/users/Ben-Speakman/events{/privacy}","received_events_url":"https://api.github.com/users/Ben-Speakman/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T14:54:39Z","updated_at":"2015-01-27T14:54:39Z","body":"Thanks for letting us know. I will update the plugin soon."}}