{"action":"created","comment":{"url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/comments/44070701","id":44070701,"diff_hunk":"@@ -173,4 +225,73 @@ public function sendData($data)\n \n         return $this->response = new PaymentResponse($this, $response);\n     }\n+\n+    /**\n+     * Applies the payment params for the initial one click payment\n+     *\n+     * @param \\Omnipay\\Adyen\\Message\\CreditCard $card\n+     * @param array $payment_params\n+     */\n+    protected function addInitialOneClickPaymentParams($card, array &$payment_params)\n+    {\n+        $payment_params += [\n+            'paymentRequest.additionalData.card.encrypted.json' => $card->getAdyenCardData()\n+        ];\n+    }\n+\n+    /**\n+     * Applies the payment parameters for successive one click payments\n+     *\n+     * @param \\Omnipay\\Adyen\\Message\\CreditCard $card\n+     * @param array $payment_params\n+     */\n+    protected function addSuccessiveOneClickPaymentParams($card, array &$payment_params)\n+    {\n+        $payment_params += [\n+            'paymentRequest.selectedRecurringDetailReference' => $this->getRecurringDetailReference(),\n+            'paymentRequest.card.cvc' => $card->getCvv()\n+        ];\n+    }\n+\n+    /**\n+     * Returns the payment parameters for standard\n+     * credit card payments\n+     *\n+     * @param \\Omnipay\\Adyen\\Message\\CreditCard $card\n+     * @return array\n+     */\n+    protected function getPaymentParams($card)\n+    {\n+        $payment_params = [\n+            \"paymentRequest.card.billingAddress.street\" => $card->getBillingAddress1(),\n+            \"paymentRequest.card.billingAddress.postalCode\" => $card->getPostcode(),\n+            \"paymentRequest.card.billingAddress.city\" => $card->getCity(),\n+            \"paymentRequest.card.billingAddress.houseNumberOrName\" => $card->getBillingAddress2(),\n+            \"paymentRequest.card.billingAddress.stateOrProvince\" => $card->getState(),\n+            \"paymentRequest.card.billingAddress.country\" => $card->getCountry(),\n+            'paymentRequest.additionalData.card.encrypted.json' => $card->getAdyenCardData()","path":"src/Message/PaymentRequest.php","position":222,"original_position":222,"commit_id":"04744eb58e6c51630b0ad56c135e866643ead8c3","original_commit_id":"04744eb58e6c51630b0ad56c135e866643ead8c3","user":{"login":"Nicole8164","id":3236167,"avatar_url":"https://avatars.githubusercontent.com/u/3236167?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicole8164","html_url":"https://github.com/Nicole8164","followers_url":"https://api.github.com/users/Nicole8164/followers","following_url":"https://api.github.com/users/Nicole8164/following{/other_user}","gists_url":"https://api.github.com/users/Nicole8164/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicole8164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicole8164/subscriptions","organizations_url":"https://api.github.com/users/Nicole8164/orgs","repos_url":"https://api.github.com/users/Nicole8164/repos","events_url":"https://api.github.com/users/Nicole8164/events{/privacy}","received_events_url":"https://api.github.com/users/Nicole8164/received_events","type":"User","site_admin":false},"body":"Consider using double quotes to be consistent with the rest of the array","created_at":"2015-11-05T21:20:15Z","updated_at":"2015-11-05T21:20:15Z","html_url":"https://github.com/vivastreet/omnipay-adyen/pull/2#discussion_r44070701","pull_request_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/comments/44070701"},"html":{"href":"https://github.com/vivastreet/omnipay-adyen/pull/2#discussion_r44070701"},"pull_request":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2","id":49858780,"html_url":"https://github.com/vivastreet/omnipay-adyen/pull/2","diff_url":"https://github.com/vivastreet/omnipay-adyen/pull/2.diff","patch_url":"https://github.com/vivastreet/omnipay-adyen/pull/2.patch","issue_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/2","number":2,"state":"open","locked":false,"title":"Feature/vs 12110","user":{"login":"Dandroas","id":8025370,"avatar_url":"https://avatars.githubusercontent.com/u/8025370?v=3","gravatar_id":"","url":"https://api.github.com/users/Dandroas","html_url":"https://github.com/Dandroas","followers_url":"https://api.github.com/users/Dandroas/followers","following_url":"https://api.github.com/users/Dandroas/following{/other_user}","gists_url":"https://api.github.com/users/Dandroas/gists{/gist_id}","starred_url":"https://api.github.com/users/Dandroas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dandroas/subscriptions","organizations_url":"https://api.github.com/users/Dandroas/orgs","repos_url":"https://api.github.com/users/Dandroas/repos","events_url":"https://api.github.com/users/Dandroas/events{/privacy}","received_events_url":"https://api.github.com/users/Dandroas/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-05T18:05:09Z","updated_at":"2015-11-05T21:20:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"951f5d32c5916aa14d9ee8d34c35c1992ccbbd82","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2/commits","review_comments_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2/comments","review_comment_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/2/comments","statuses_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/statuses/04744eb58e6c51630b0ad56c135e866643ead8c3","head":{"label":"vivastreet:feature/VS-12110","ref":"feature/VS-12110","sha":"04744eb58e6c51630b0ad56c135e866643ead8c3","user":{"login":"vivastreet","id":5824204,"avatar_url":"https://avatars.githubusercontent.com/u/5824204?v=3","gravatar_id":"","url":"https://api.github.com/users/vivastreet","html_url":"https://github.com/vivastreet","followers_url":"https://api.github.com/users/vivastreet/followers","following_url":"https://api.github.com/users/vivastreet/following{/other_user}","gists_url":"https://api.github.com/users/vivastreet/gists{/gist_id}","starred_url":"https://api.github.com/users/vivastreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivastreet/subscriptions","organizations_url":"https://api.github.com/users/vivastreet/orgs","repos_url":"https://api.github.com/users/vivastreet/repos","events_url":"https://api.github.com/users/vivastreet/events{/privacy}","received_events_url":"https://api.github.com/users/vivastreet/received_events","type":"Organization","site_admin":false},"repo":{"id":45194167,"name":"omnipay-adyen","full_name":"vivastreet/omnipay-adyen","owner":{"login":"vivastreet","id":5824204,"avatar_url":"https://avatars.githubusercontent.com/u/5824204?v=3","gravatar_id":"","url":"https://api.github.com/users/vivastreet","html_url":"https://github.com/vivastreet","followers_url":"https://api.github.com/users/vivastreet/followers","following_url":"https://api.github.com/users/vivastreet/following{/other_user}","gists_url":"https://api.github.com/users/vivastreet/gists{/gist_id}","starred_url":"https://api.github.com/users/vivastreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivastreet/subscriptions","organizations_url":"https://api.github.com/users/vivastreet/orgs","repos_url":"https://api.github.com/users/vivastreet/repos","events_url":"https://api.github.com/users/vivastreet/events{/privacy}","received_events_url":"https://api.github.com/users/vivastreet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vivastreet/omnipay-adyen","description":"Adyen driver for the Omnipay PHP payment processing library","fork":false,"url":"https://api.github.com/repos/vivastreet/omnipay-adyen","forks_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/forks","keys_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/teams","hooks_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/hooks","issue_events_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/events{/number}","events_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/events","assignees_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/assignees{/user}","branches_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/branches{/branch}","tags_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/tags","blobs_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/refs{/sha}","trees_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/statuses/{sha}","languages_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/languages","stargazers_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/stargazers","contributors_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/contributors","subscribers_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/subscribers","subscription_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/subscription","commits_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/commits{/sha}","git_commits_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/commits{/sha}","comments_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/comments{/number}","issue_comment_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/comments{/number}","contents_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/contents/{+path}","compare_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/merges","archive_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/downloads","issues_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues{/number}","pulls_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls{/number}","milestones_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/milestones{/number}","notifications_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/labels{/name}","releases_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/releases{/id}","created_at":"2015-10-29T15:59:05Z","updated_at":"2015-10-29T15:59:05Z","pushed_at":"2015-11-05T18:05:09Z","git_url":"git://github.com/vivastreet/omnipay-adyen.git","ssh_url":"git@github.com:vivastreet/omnipay-adyen.git","clone_url":"https://github.com/vivastreet/omnipay-adyen.git","svn_url":"https://github.com/vivastreet/omnipay-adyen","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"vivastreet:develop","ref":"develop","sha":"212325f57045b207641dead4cf48b55f10e8535e","user":{"login":"vivastreet","id":5824204,"avatar_url":"https://avatars.githubusercontent.com/u/5824204?v=3","gravatar_id":"","url":"https://api.github.com/users/vivastreet","html_url":"https://github.com/vivastreet","followers_url":"https://api.github.com/users/vivastreet/followers","following_url":"https://api.github.com/users/vivastreet/following{/other_user}","gists_url":"https://api.github.com/users/vivastreet/gists{/gist_id}","starred_url":"https://api.github.com/users/vivastreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivastreet/subscriptions","organizations_url":"https://api.github.com/users/vivastreet/orgs","repos_url":"https://api.github.com/users/vivastreet/repos","events_url":"https://api.github.com/users/vivastreet/events{/privacy}","received_events_url":"https://api.github.com/users/vivastreet/received_events","type":"Organization","site_admin":false},"repo":{"id":45194167,"name":"omnipay-adyen","full_name":"vivastreet/omnipay-adyen","owner":{"login":"vivastreet","id":5824204,"avatar_url":"https://avatars.githubusercontent.com/u/5824204?v=3","gravatar_id":"","url":"https://api.github.com/users/vivastreet","html_url":"https://github.com/vivastreet","followers_url":"https://api.github.com/users/vivastreet/followers","following_url":"https://api.github.com/users/vivastreet/following{/other_user}","gists_url":"https://api.github.com/users/vivastreet/gists{/gist_id}","starred_url":"https://api.github.com/users/vivastreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivastreet/subscriptions","organizations_url":"https://api.github.com/users/vivastreet/orgs","repos_url":"https://api.github.com/users/vivastreet/repos","events_url":"https://api.github.com/users/vivastreet/events{/privacy}","received_events_url":"https://api.github.com/users/vivastreet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vivastreet/omnipay-adyen","description":"Adyen driver for the Omnipay PHP payment processing library","fork":false,"url":"https://api.github.com/repos/vivastreet/omnipay-adyen","forks_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/forks","keys_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/teams","hooks_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/hooks","issue_events_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/events{/number}","events_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/events","assignees_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/assignees{/user}","branches_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/branches{/branch}","tags_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/tags","blobs_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/refs{/sha}","trees_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/statuses/{sha}","languages_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/languages","stargazers_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/stargazers","contributors_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/contributors","subscribers_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/subscribers","subscription_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/subscription","commits_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/commits{/sha}","git_commits_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/git/commits{/sha}","comments_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/comments{/number}","issue_comment_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/comments{/number}","contents_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/contents/{+path}","compare_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/merges","archive_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/downloads","issues_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues{/number}","pulls_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls{/number}","milestones_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/milestones{/number}","notifications_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/labels{/name}","releases_url":"https://api.github.com/repos/vivastreet/omnipay-adyen/releases{/id}","created_at":"2015-10-29T15:59:05Z","updated_at":"2015-10-29T15:59:05Z","pushed_at":"2015-11-05T18:05:09Z","git_url":"git://github.com/vivastreet/omnipay-adyen.git","ssh_url":"git@github.com:vivastreet/omnipay-adyen.git","clone_url":"https://github.com/vivastreet/omnipay-adyen.git","svn_url":"https://github.com/vivastreet/omnipay-adyen","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2"},"html":{"href":"https://github.com/vivastreet/omnipay-adyen/pull/2"},"issue":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/2"},"comments":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/vivastreet/omnipay-adyen/statuses/04744eb58e6c51630b0ad56c135e866643ead8c3"}}}}