{"action":"created","comment":{"url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/comments/170298559","pull_request_review_id":98969737,"id":170298559,"diff_hunk":"@@ -0,0 +1,206 @@\n+<?php\n+/**\n+ * Shop System Plugins - Terms of Use\n+ *\n+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH\n+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of\n+ * products and services.\n+ *\n+ * They have been tested and approved for full functionality in the standard configuration\n+ * (status on delivery) of the corresponding shop system. They are under General Public\n+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under\n+ * the same terms.\n+ *\n+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors\n+ * occurring when used in an enhanced, customized shop system configuration.\n+ *\n+ * Operation in an enhanced, customized configuration is at your own risk and requires a\n+ * comprehensive test phase by the user of the plugin.\n+ *\n+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full\n+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to\n+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality\n+ * for customized shop systems or installed plugins of other vendors of plugins within the same\n+ * shop system.\n+ *\n+ * Customers are responsible for testing the plugin's functionality before starting productive\n+ * operation.\n+ *\n+ * By installing the plugin into the shop system the customer agrees to these terms of use.\n+ * Please do not use the plugin if you do not agree to these terms of use!\n+ *\n+ * @author    WirecardCEE\n+ * @copyright WirecardCEE\n+ * @license   GPLv2\n+ */\n+\n+use Wirecard\\PaymentSdk\\Transaction\\PayPalTransaction;\n+use Wirecard\\PaymentSdk\\Entity\\CustomField;\n+use Wirecard\\PaymentSdk\\Entity\\CustomFieldCollection;\n+use Wirecard\\PaymentSdk\\Entity\\Amount;\n+use Wirecard\\PaymentSdk\\Entity\\Basket;\n+use Wirecard\\PaymentSdk\\Entity\\Item;\n+use Wirecard\\PaymentSdk\\Entity\\Redirect;\n+use Wirecard\\PaymentSdk\\Entity\\AccountHolder;\n+use Wirecard\\PaymentSdk\\Entity\\Device;\n+\n+class WirecardPaymentGatewayPaymentPaypal extends WirecardPaymentGatewayPayment\n+{\n+    protected $paymentMethod = 'Paypal';\n+\n+    function getTransaction($cart,$orderNumber){\n+        $currency = new CurrencyCore($cart->id_currency);\n+        $currencyIsoCode = $currency->iso_code;\n+        //$orderNumber = $this->module->currentOrder;","path":"wirecardpaymentgateway/models/Wirecard/PaymentGateway/Payment/Paypal.php","position":54,"original_position":54,"commit_id":"bd4ba4caab1d022b47cee2f8e4a40f7d24f80e80","original_commit_id":"bd4ba4caab1d022b47cee2f8e4a40f7d24f80e80","user":{"login":"wirecard-bot","id":19989513,"avatar_url":"https://avatars1.githubusercontent.com/u/19989513?v=4","gravatar_id":"","url":"https://api.github.com/users/wirecard-bot","html_url":"https://github.com/wirecard-bot","followers_url":"https://api.github.com/users/wirecard-bot/followers","following_url":"https://api.github.com/users/wirecard-bot/following{/other_user}","gists_url":"https://api.github.com/users/wirecard-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/wirecard-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirecard-bot/subscriptions","organizations_url":"https://api.github.com/users/wirecard-bot/orgs","repos_url":"https://api.github.com/users/wirecard-bot/repos","events_url":"https://api.github.com/users/wirecard-bot/events{/privacy}","received_events_url":"https://api.github.com/users/wirecard-bot/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') Remove this commented out code. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarcloud.io/coding_rules#rule_key=php%3AS125)\n","created_at":"2018-02-23T16:29:51Z","updated_at":"2018-02-23T16:29:51Z","html_url":"https://github.com/wirecard/prestashop-ee/pull/32#discussion_r170298559","pull_request_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/comments/170298559"},"html":{"href":"https://github.com/wirecard/prestashop-ee/pull/32#discussion_r170298559"},"pull_request":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32","id":170413409,"html_url":"https://github.com/wirecard/prestashop-ee/pull/32","diff_url":"https://github.com/wirecard/prestashop-ee/pull/32.diff","patch_url":"https://github.com/wirecard/prestashop-ee/pull/32.patch","issue_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/32","number":32,"state":"open","locked":false,"title":"#24 data handeling","user":{"login":"stroiaeduard","id":35485792,"avatar_url":"https://avatars2.githubusercontent.com/u/35485792?v=4","gravatar_id":"","url":"https://api.github.com/users/stroiaeduard","html_url":"https://github.com/stroiaeduard","followers_url":"https://api.github.com/users/stroiaeduard/followers","following_url":"https://api.github.com/users/stroiaeduard/following{/other_user}","gists_url":"https://api.github.com/users/stroiaeduard/gists{/gist_id}","starred_url":"https://api.github.com/users/stroiaeduard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stroiaeduard/subscriptions","organizations_url":"https://api.github.com/users/stroiaeduard/orgs","repos_url":"https://api.github.com/users/stroiaeduard/repos","events_url":"https://api.github.com/users/stroiaeduard/events{/privacy}","received_events_url":"https://api.github.com/users/stroiaeduard/received_events","type":"User","site_admin":false},"body":"handling:\r\n- success\r\n- cancel\r\n- notify\r\n- email sent\r\n- order status change\r\n- results logged","created_at":"2018-02-21T09:21:08Z","updated_at":"2018-02-23T16:29:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbff33f6d9952e2252f752bda5cd6e54f23752cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32/commits","review_comments_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32/comments","review_comment_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/32/comments","statuses_url":"https://api.github.com/repos/wirecard/prestashop-ee/statuses/bd4ba4caab1d022b47cee2f8e4a40f7d24f80e80","head":{"label":"wirecard:result_handeling","ref":"result_handeling","sha":"bd4ba4caab1d022b47cee2f8e4a40f7d24f80e80","user":{"login":"wirecard","id":15652686,"avatar_url":"https://avatars3.githubusercontent.com/u/15652686?v=4","gravatar_id":"","url":"https://api.github.com/users/wirecard","html_url":"https://github.com/wirecard","followers_url":"https://api.github.com/users/wirecard/followers","following_url":"https://api.github.com/users/wirecard/following{/other_user}","gists_url":"https://api.github.com/users/wirecard/gists{/gist_id}","starred_url":"https://api.github.com/users/wirecard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirecard/subscriptions","organizations_url":"https://api.github.com/users/wirecard/orgs","repos_url":"https://api.github.com/users/wirecard/repos","events_url":"https://api.github.com/users/wirecard/events{/privacy}","received_events_url":"https://api.github.com/users/wirecard/received_events","type":"Organization","site_admin":false},"repo":{"id":117562792,"name":"prestashop-ee","full_name":"wirecard/prestashop-ee","owner":{"login":"wirecard","id":15652686,"avatar_url":"https://avatars3.githubusercontent.com/u/15652686?v=4","gravatar_id":"","url":"https://api.github.com/users/wirecard","html_url":"https://github.com/wirecard","followers_url":"https://api.github.com/users/wirecard/followers","following_url":"https://api.github.com/users/wirecard/following{/other_user}","gists_url":"https://api.github.com/users/wirecard/gists{/gist_id}","starred_url":"https://api.github.com/users/wirecard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirecard/subscriptions","organizations_url":"https://api.github.com/users/wirecard/orgs","repos_url":"https://api.github.com/users/wirecard/repos","events_url":"https://api.github.com/users/wirecard/events{/privacy}","received_events_url":"https://api.github.com/users/wirecard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wirecard/prestashop-ee","description":null,"fork":false,"url":"https://api.github.com/repos/wirecard/prestashop-ee","forks_url":"https://api.github.com/repos/wirecard/prestashop-ee/forks","keys_url":"https://api.github.com/repos/wirecard/prestashop-ee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wirecard/prestashop-ee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wirecard/prestashop-ee/teams","hooks_url":"https://api.github.com/repos/wirecard/prestashop-ee/hooks","issue_events_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/events{/number}","events_url":"https://api.github.com/repos/wirecard/prestashop-ee/events","assignees_url":"https://api.github.com/repos/wirecard/prestashop-ee/assignees{/user}","branches_url":"https://api.github.com/repos/wirecard/prestashop-ee/branches{/branch}","tags_url":"https://api.github.com/repos/wirecard/prestashop-ee/tags","blobs_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/refs{/sha}","trees_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wirecard/prestashop-ee/statuses/{sha}","languages_url":"https://api.github.com/repos/wirecard/prestashop-ee/languages","stargazers_url":"https://api.github.com/repos/wirecard/prestashop-ee/stargazers","contributors_url":"https://api.github.com/repos/wirecard/prestashop-ee/contributors","subscribers_url":"https://api.github.com/repos/wirecard/prestashop-ee/subscribers","subscription_url":"https://api.github.com/repos/wirecard/prestashop-ee/subscription","commits_url":"https://api.github.com/repos/wirecard/prestashop-ee/commits{/sha}","git_commits_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/commits{/sha}","comments_url":"https://api.github.com/repos/wirecard/prestashop-ee/comments{/number}","issue_comment_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/comments{/number}","contents_url":"https://api.github.com/repos/wirecard/prestashop-ee/contents/{+path}","compare_url":"https://api.github.com/repos/wirecard/prestashop-ee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wirecard/prestashop-ee/merges","archive_url":"https://api.github.com/repos/wirecard/prestashop-ee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wirecard/prestashop-ee/downloads","issues_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues{/number}","pulls_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls{/number}","milestones_url":"https://api.github.com/repos/wirecard/prestashop-ee/milestones{/number}","notifications_url":"https://api.github.com/repos/wirecard/prestashop-ee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wirecard/prestashop-ee/labels{/name}","releases_url":"https://api.github.com/repos/wirecard/prestashop-ee/releases{/id}","deployments_url":"https://api.github.com/repos/wirecard/prestashop-ee/deployments","created_at":"2018-01-15T15:32:09Z","updated_at":"2018-02-01T09:10:50Z","pushed_at":"2018-02-23T16:27:46Z","git_url":"git://github.com/wirecard/prestashop-ee.git","ssh_url":"git@github.com:wirecard/prestashop-ee.git","clone_url":"https://github.com/wirecard/prestashop-ee.git","svn_url":"https://github.com/wirecard/prestashop-ee","homepage":null,"size":2056,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"wirecard:master","ref":"master","sha":"6c575742e218b5c1dcb7786c25f51e7990c95fb9","user":{"login":"wirecard","id":15652686,"avatar_url":"https://avatars3.githubusercontent.com/u/15652686?v=4","gravatar_id":"","url":"https://api.github.com/users/wirecard","html_url":"https://github.com/wirecard","followers_url":"https://api.github.com/users/wirecard/followers","following_url":"https://api.github.com/users/wirecard/following{/other_user}","gists_url":"https://api.github.com/users/wirecard/gists{/gist_id}","starred_url":"https://api.github.com/users/wirecard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirecard/subscriptions","organizations_url":"https://api.github.com/users/wirecard/orgs","repos_url":"https://api.github.com/users/wirecard/repos","events_url":"https://api.github.com/users/wirecard/events{/privacy}","received_events_url":"https://api.github.com/users/wirecard/received_events","type":"Organization","site_admin":false},"repo":{"id":117562792,"name":"prestashop-ee","full_name":"wirecard/prestashop-ee","owner":{"login":"wirecard","id":15652686,"avatar_url":"https://avatars3.githubusercontent.com/u/15652686?v=4","gravatar_id":"","url":"https://api.github.com/users/wirecard","html_url":"https://github.com/wirecard","followers_url":"https://api.github.com/users/wirecard/followers","following_url":"https://api.github.com/users/wirecard/following{/other_user}","gists_url":"https://api.github.com/users/wirecard/gists{/gist_id}","starred_url":"https://api.github.com/users/wirecard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirecard/subscriptions","organizations_url":"https://api.github.com/users/wirecard/orgs","repos_url":"https://api.github.com/users/wirecard/repos","events_url":"https://api.github.com/users/wirecard/events{/privacy}","received_events_url":"https://api.github.com/users/wirecard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wirecard/prestashop-ee","description":null,"fork":false,"url":"https://api.github.com/repos/wirecard/prestashop-ee","forks_url":"https://api.github.com/repos/wirecard/prestashop-ee/forks","keys_url":"https://api.github.com/repos/wirecard/prestashop-ee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wirecard/prestashop-ee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wirecard/prestashop-ee/teams","hooks_url":"https://api.github.com/repos/wirecard/prestashop-ee/hooks","issue_events_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/events{/number}","events_url":"https://api.github.com/repos/wirecard/prestashop-ee/events","assignees_url":"https://api.github.com/repos/wirecard/prestashop-ee/assignees{/user}","branches_url":"https://api.github.com/repos/wirecard/prestashop-ee/branches{/branch}","tags_url":"https://api.github.com/repos/wirecard/prestashop-ee/tags","blobs_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/refs{/sha}","trees_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wirecard/prestashop-ee/statuses/{sha}","languages_url":"https://api.github.com/repos/wirecard/prestashop-ee/languages","stargazers_url":"https://api.github.com/repos/wirecard/prestashop-ee/stargazers","contributors_url":"https://api.github.com/repos/wirecard/prestashop-ee/contributors","subscribers_url":"https://api.github.com/repos/wirecard/prestashop-ee/subscribers","subscription_url":"https://api.github.com/repos/wirecard/prestashop-ee/subscription","commits_url":"https://api.github.com/repos/wirecard/prestashop-ee/commits{/sha}","git_commits_url":"https://api.github.com/repos/wirecard/prestashop-ee/git/commits{/sha}","comments_url":"https://api.github.com/repos/wirecard/prestashop-ee/comments{/number}","issue_comment_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues/comments{/number}","contents_url":"https://api.github.com/repos/wirecard/prestashop-ee/contents/{+path}","compare_url":"https://api.github.com/repos/wirecard/prestashop-ee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wirecard/prestashop-ee/merges","archive_url":"https://api.github.com/repos/wirecard/prestashop-ee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wirecard/prestashop-ee/downloads","issues_url":"https://api.github.com/repos/wirecard/prestashop-ee/issues{/number}","pulls_url":"https://api.github.com/repos/wirecard/prestashop-ee/pulls{/number}","milestones_url":"https://api.github.com/repos/wirecard/prestashop-ee/milestones{/number}","notifications_url":"https://api.github.com/repos/wirecard/prestashop-ee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wirecard/prestashop-ee/labels{/name}","releases_url":"https://api.github.com/repos/wirecard/prestashop-ee/releases{/id}","deployments_url":"https://api.github.com/repos/wirecard/prestashop-ee/deployments","created_at":"2018-01-15T15:32:09Z","updated_at":"2018-02-01T09:10:50Z","pushed_at":"2018-02-23T16:27:46Z","git_url":"git://github.com/wirecard/prestashop-ee.git","ssh_url":"git@github.com:wirecard/prestashop-ee.git","clone_url":"https://github.com/wirecard/prestashop-ee.git","svn_url":"https://github.com/wirecard/prestashop-ee","homepage":null,"size":2056,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32"},"html":{"href":"https://github.com/wirecard/prestashop-ee/pull/32"},"issue":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/issues/32"},"comments":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/wirecard/prestashop-ee/statuses/bd4ba4caab1d022b47cee2f8e4a40f7d24f80e80"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wirecard-bot"}}