{"action":"created","comment":{"url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/comments/27945258","id":27945258,"diff_hunk":"@@ -7,58 +7,96 @@\n     /**\n      * Validation for paymill payment\n      */\n-    $(\"#paymill_form\").submit(function(){\n \n-        $(\"#paymill_view_submit\").attr(\"disabled\", \"disabled\");\n+    var oPaymill = {\n+        oForm : document.getElementById('paymill_form'),\n+        oErrorContainer : document.getElementById('paymill_payment_error'),\n+        oSubmit : document.getElementById('paymill_view_submit'),\n+        nCardNumbers1 : 0000,\n+        nCardNumbers2 : 0000,\n+        nCardNumbers3 : 0000,\n+        nCardNumbers4 : 0000,\n+        nCardNumbers : 0000,\n+        sCardHolder : '',\n+        sExpiryMonth : '',\n+        sExpiryYear : '',\n+        nCvv : 000,\n+        bOkNumber : false,\n+        bOkExpiry : false,\n+        bOkCvv : false\n+    };\n \n-        //join all cc numbers in one\n-        var cc = $('#paymill_view_credit_card_1').val() + $('#paymill_view_credit_card_2').val() + $('#paymill_view_credit_card_3').val() + $('#paymill_view_credit_card_4').val();\n-        var cardholder = $('#paymill_view_credit_card_owner').val();\n-        var expiry_month = $('#paymill_view_credit_card_expiration_month').val();\n-        var expiry_year = $('#paymill_view_credit_card_expiration_year').val();\n-        var cvv = $('#paymill_view_credit_card_security').val();\n \n-        var $paymill_payment_error = $('#paymill_payment_error');\n-        $paymill_payment_error.html('');\n+    oPaymill.oForm.setAttribute('onsubmit','return submitPaymill()');\n \n-        var okCardNumber = paymill.validateCardNumber(cc);\n-        if (!okCardNumber) {\n \n-            $paymill_payment_error.append('<li>Card number invalid</li>');\n-        }\n+    function submitPaymill() {\n+\n+        oPaymill.oSubmit.disabled = true;\n+\n+        oPaymill.nCardNumbers1 = document.getElementById('paymill_view_credit_card_1').value;","path":"src/PaymentSuite/PaymillBundle/Resources/views/Paymill/scripts.html.twig","position":45,"original_position":45,"commit_id":"4bbc33f63fc27e0705214e7112ec3b6838b53781","original_commit_id":"4bbc33f63fc27e0705214e7112ec3b6838b53781","user":{"login":"tonipinel","id":998987,"avatar_url":"https://avatars.githubusercontent.com/u/998987?v=3","gravatar_id":"","url":"https://api.github.com/users/tonipinel","html_url":"https://github.com/tonipinel","followers_url":"https://api.github.com/users/tonipinel/followers","following_url":"https://api.github.com/users/tonipinel/following{/other_user}","gists_url":"https://api.github.com/users/tonipinel/gists{/gist_id}","starred_url":"https://api.github.com/users/tonipinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonipinel/subscriptions","organizations_url":"https://api.github.com/users/tonipinel/orgs","repos_url":"https://api.github.com/users/tonipinel/repos","events_url":"https://api.github.com/users/tonipinel/events{/privacy}","received_events_url":"https://api.github.com/users/tonipinel/received_events","type":"User","site_admin":false},"body":"Same as the the first comment with querySelector..","created_at":"2015-04-08T06:11:25Z","updated_at":"2015-04-08T06:11:25Z","html_url":"https://github.com/PaymentSuite/paymentsuite/pull/26#discussion_r27945258","pull_request_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/comments/27945258"},"html":{"href":"https://github.com/PaymentSuite/paymentsuite/pull/26#discussion_r27945258"},"pull_request":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26","id":32783004,"html_url":"https://github.com/PaymentSuite/paymentsuite/pull/26","diff_url":"https://github.com/PaymentSuite/paymentsuite/pull/26.diff","patch_url":"https://github.com/PaymentSuite/paymentsuite/pull/26.patch","issue_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/26","number":26,"state":"open","locked":false,"title":"Updated javascript for paymill to be native","user":{"login":"tonipinel","id":998987,"avatar_url":"https://avatars.githubusercontent.com/u/998987?v=3","gravatar_id":"","url":"https://api.github.com/users/tonipinel","html_url":"https://github.com/tonipinel","followers_url":"https://api.github.com/users/tonipinel/followers","following_url":"https://api.github.com/users/tonipinel/following{/other_user}","gists_url":"https://api.github.com/users/tonipinel/gists{/gist_id}","starred_url":"https://api.github.com/users/tonipinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonipinel/subscriptions","organizations_url":"https://api.github.com/users/tonipinel/orgs","repos_url":"https://api.github.com/users/tonipinel/repos","events_url":"https://api.github.com/users/tonipinel/events{/privacy}","received_events_url":"https://api.github.com/users/tonipinel/received_events","type":"User","site_admin":false},"body":"Not use Jquery creates less dependencies for this suite","created_at":"2015-04-07T16:49:57Z","updated_at":"2015-04-08T06:11:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad1188522eff9641c059d5c5e91e5f574f5b7ed3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26/commits","review_comments_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26/comments","review_comment_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/26/comments","statuses_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/statuses/4bbc33f63fc27e0705214e7112ec3b6838b53781","head":{"label":"tonipinel:patch-1","ref":"patch-1","sha":"4bbc33f63fc27e0705214e7112ec3b6838b53781","user":{"login":"tonipinel","id":998987,"avatar_url":"https://avatars.githubusercontent.com/u/998987?v=3","gravatar_id":"","url":"https://api.github.com/users/tonipinel","html_url":"https://github.com/tonipinel","followers_url":"https://api.github.com/users/tonipinel/followers","following_url":"https://api.github.com/users/tonipinel/following{/other_user}","gists_url":"https://api.github.com/users/tonipinel/gists{/gist_id}","starred_url":"https://api.github.com/users/tonipinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonipinel/subscriptions","organizations_url":"https://api.github.com/users/tonipinel/orgs","repos_url":"https://api.github.com/users/tonipinel/repos","events_url":"https://api.github.com/users/tonipinel/events{/privacy}","received_events_url":"https://api.github.com/users/tonipinel/received_events","type":"User","site_admin":false},"repo":{"id":33555809,"name":"paymentsuite","full_name":"tonipinel/paymentsuite","owner":{"login":"tonipinel","id":998987,"avatar_url":"https://avatars.githubusercontent.com/u/998987?v=3","gravatar_id":"","url":"https://api.github.com/users/tonipinel","html_url":"https://github.com/tonipinel","followers_url":"https://api.github.com/users/tonipinel/followers","following_url":"https://api.github.com/users/tonipinel/following{/other_user}","gists_url":"https://api.github.com/users/tonipinel/gists{/gist_id}","starred_url":"https://api.github.com/users/tonipinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonipinel/subscriptions","organizations_url":"https://api.github.com/users/tonipinel/orgs","repos_url":"https://api.github.com/users/tonipinel/repos","events_url":"https://api.github.com/users/tonipinel/events{/privacy}","received_events_url":"https://api.github.com/users/tonipinel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonipinel/paymentsuite","description":"E-commerce payment components for symfony2","fork":true,"url":"https://api.github.com/repos/tonipinel/paymentsuite","forks_url":"https://api.github.com/repos/tonipinel/paymentsuite/forks","keys_url":"https://api.github.com/repos/tonipinel/paymentsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonipinel/paymentsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonipinel/paymentsuite/teams","hooks_url":"https://api.github.com/repos/tonipinel/paymentsuite/hooks","issue_events_url":"https://api.github.com/repos/tonipinel/paymentsuite/issues/events{/number}","events_url":"https://api.github.com/repos/tonipinel/paymentsuite/events","assignees_url":"https://api.github.com/repos/tonipinel/paymentsuite/assignees{/user}","branches_url":"https://api.github.com/repos/tonipinel/paymentsuite/branches{/branch}","tags_url":"https://api.github.com/repos/tonipinel/paymentsuite/tags","blobs_url":"https://api.github.com/repos/tonipinel/paymentsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonipinel/paymentsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonipinel/paymentsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonipinel/paymentsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonipinel/paymentsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/tonipinel/paymentsuite/languages","stargazers_url":"https://api.github.com/repos/tonipinel/paymentsuite/stargazers","contributors_url":"https://api.github.com/repos/tonipinel/paymentsuite/contributors","subscribers_url":"https://api.github.com/repos/tonipinel/paymentsuite/subscribers","subscription_url":"https://api.github.com/repos/tonipinel/paymentsuite/subscription","commits_url":"https://api.github.com/repos/tonipinel/paymentsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonipinel/paymentsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonipinel/paymentsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonipinel/paymentsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonipinel/paymentsuite/contents/{+path}","compare_url":"https://api.github.com/repos/tonipinel/paymentsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonipinel/paymentsuite/merges","archive_url":"https://api.github.com/repos/tonipinel/paymentsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonipinel/paymentsuite/downloads","issues_url":"https://api.github.com/repos/tonipinel/paymentsuite/issues{/number}","pulls_url":"https://api.github.com/repos/tonipinel/paymentsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/tonipinel/paymentsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/tonipinel/paymentsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonipinel/paymentsuite/labels{/name}","releases_url":"https://api.github.com/repos/tonipinel/paymentsuite/releases{/id}","created_at":"2015-04-07T16:48:26Z","updated_at":"2015-04-07T16:48:27Z","pushed_at":"2015-04-07T16:49:37Z","git_url":"git://github.com/tonipinel/paymentsuite.git","ssh_url":"git@github.com:tonipinel/paymentsuite.git","clone_url":"https://github.com/tonipinel/paymentsuite.git","svn_url":"https://github.com/tonipinel/paymentsuite","homepage":"http://paymentsuite.github.io/","size":1112,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PaymentSuite:master","ref":"master","sha":"5662616cc61d7906fda486d330083ee090eb76d0","user":{"login":"PaymentSuite","id":6288066,"avatar_url":"https://avatars.githubusercontent.com/u/6288066?v=3","gravatar_id":"","url":"https://api.github.com/users/PaymentSuite","html_url":"https://github.com/PaymentSuite","followers_url":"https://api.github.com/users/PaymentSuite/followers","following_url":"https://api.github.com/users/PaymentSuite/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSuite/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSuite/subscriptions","organizations_url":"https://api.github.com/users/PaymentSuite/orgs","repos_url":"https://api.github.com/users/PaymentSuite/repos","events_url":"https://api.github.com/users/PaymentSuite/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSuite/received_events","type":"Organization","site_admin":false},"repo":{"id":20381980,"name":"paymentsuite","full_name":"PaymentSuite/paymentsuite","owner":{"login":"PaymentSuite","id":6288066,"avatar_url":"https://avatars.githubusercontent.com/u/6288066?v=3","gravatar_id":"","url":"https://api.github.com/users/PaymentSuite","html_url":"https://github.com/PaymentSuite","followers_url":"https://api.github.com/users/PaymentSuite/followers","following_url":"https://api.github.com/users/PaymentSuite/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSuite/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSuite/subscriptions","organizations_url":"https://api.github.com/users/PaymentSuite/orgs","repos_url":"https://api.github.com/users/PaymentSuite/repos","events_url":"https://api.github.com/users/PaymentSuite/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaymentSuite/paymentsuite","description":"E-commerce payment components for symfony2","fork":false,"url":"https://api.github.com/repos/PaymentSuite/paymentsuite","forks_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/forks","keys_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/teams","hooks_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/hooks","issue_events_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/events{/number}","events_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/events","assignees_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/assignees{/user}","branches_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/branches{/branch}","tags_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/tags","blobs_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/languages","stargazers_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/stargazers","contributors_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/contributors","subscribers_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/subscribers","subscription_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/subscription","commits_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/contents/{+path}","compare_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/merges","archive_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/downloads","issues_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues{/number}","pulls_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/labels{/name}","releases_url":"https://api.github.com/repos/PaymentSuite/paymentsuite/releases{/id}","created_at":"2014-06-01T17:14:44Z","updated_at":"2015-03-16T20:46:44Z","pushed_at":"2015-04-07T16:49:57Z","git_url":"git://github.com/PaymentSuite/paymentsuite.git","ssh_url":"git@github.com:PaymentSuite/paymentsuite.git","clone_url":"https://github.com/PaymentSuite/paymentsuite.git","svn_url":"https://github.com/PaymentSuite/paymentsuite","homepage":"http://paymentsuite.github.io/","size":1704,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":11,"forks":7,"open_issues":11,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26"},"html":{"href":"https://github.com/PaymentSuite/paymentsuite/pull/26"},"issue":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/26"},"comments":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/PaymentSuite/paymentsuite/statuses/4bbc33f63fc27e0705214e7112ec3b6838b53781"}}}}