{"action":"created","issue":{"url":"https://api.github.com/repos/Adyen/magento/issues/343","labels_url":"https://api.github.com/repos/Adyen/magento/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/Adyen/magento/issues/343/comments","events_url":"https://api.github.com/repos/Adyen/magento/issues/343/events","html_url":"https://github.com/Adyen/magento/issues/343","id":92189222,"number":343,"title":"Javascript errors in checkout","user":{"login":"robbanl","id":922250,"avatar_url":"https://avatars.githubusercontent.com/u/922250?v=3","gravatar_id":"","url":"https://api.github.com/users/robbanl","html_url":"https://github.com/robbanl","followers_url":"https://api.github.com/users/robbanl/followers","following_url":"https://api.github.com/users/robbanl/following{/other_user}","gists_url":"https://api.github.com/users/robbanl/gists{/gist_id}","starred_url":"https://api.github.com/users/robbanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbanl/subscriptions","organizations_url":"https://api.github.com/users/robbanl/orgs","repos_url":"https://api.github.com/users/robbanl/repos","events_url":"https://api.github.com/users/robbanl/events{/privacy}","received_events_url":"https://api.github.com/users/robbanl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T20:17:10Z","updated_at":"2015-07-06T07:11:23Z","closed_at":"2015-07-06T07:11:23Z","body":"When having Adyen CC method activated, there is a javascript error in Safari (and I'm guessing other browsers to) saying\r\n\r\n    SyntaxError: Unexpected token ']'. Expected ')' to end a argument list.\r\n\r\nA close look on the source I can see it's the following line that's complaining.\r\n\r\n    Validation.creditCartTypes.set('unionpay', [new RegExp('^62[0-5]\\d{13,16}$', new RegExp('^[0-9]{3}$'), true]);\r\n\r\nCausing the checkout to not function at all.\r\n\r\nAlso, another error is\r\n\r\n    TypeError: null is not an object (evaluating 'cvcCodeElem.removeClassName')\r\n\r\nAnd the line causing the error\r\n\r\n    cvcCodeElem.removeClassName('maximum-length-3');\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Adyen/magento/issues/comments/118750456","html_url":"https://github.com/Adyen/magento/issues/343#issuecomment-118750456","issue_url":"https://api.github.com/repos/Adyen/magento/issues/343","id":118750456,"user":{"login":"rikterbeek","id":5948499,"avatar_url":"https://avatars.githubusercontent.com/u/5948499?v=3","gravatar_id":"","url":"https://api.github.com/users/rikterbeek","html_url":"https://github.com/rikterbeek","followers_url":"https://api.github.com/users/rikterbeek/followers","following_url":"https://api.github.com/users/rikterbeek/following{/other_user}","gists_url":"https://api.github.com/users/rikterbeek/gists{/gist_id}","starred_url":"https://api.github.com/users/rikterbeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rikterbeek/subscriptions","organizations_url":"https://api.github.com/users/rikterbeek/orgs","repos_url":"https://api.github.com/users/rikterbeek/repos","events_url":"https://api.github.com/users/rikterbeek/events{/privacy}","received_events_url":"https://api.github.com/users/rikterbeek/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T07:11:23Z","updated_at":"2015-07-06T07:11:23Z","body":"This is patched and released in version 2.3.1. Sorry for the late release."}}