{"action":"created","issue":{"url":"https://api.github.com/repos/wirecard/magento2-ee/issues/161","repository_url":"https://api.github.com/repos/wirecard/magento2-ee","labels_url":"https://api.github.com/repos/wirecard/magento2-ee/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/wirecard/magento2-ee/issues/161/comments","events_url":"https://api.github.com/repos/wirecard/magento2-ee/issues/161/events","html_url":"https://github.com/wirecard/magento2-ee/issues/161","id":379608144,"node_id":"MDU6SXNzdWUzNzk2MDgxNDQ=","number":161,"title":"Credit card payment currency issue","user":{"login":"thomas-WD","id":42730393,"node_id":"MDQ6VXNlcjQyNzMwMzkz","avatar_url":"https://avatars3.githubusercontent.com/u/42730393?v=4","gravatar_id":"","url":"https://api.github.com/users/thomas-WD","html_url":"https://github.com/thomas-WD","followers_url":"https://api.github.com/users/thomas-WD/followers","following_url":"https://api.github.com/users/thomas-WD/following{/other_user}","gists_url":"https://api.github.com/users/thomas-WD/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-WD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-WD/subscriptions","organizations_url":"https://api.github.com/users/thomas-WD/orgs","repos_url":"https://api.github.com/users/thomas-WD/repos","events_url":"https://api.github.com/users/thomas-WD/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-WD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-12T03:35:58Z","updated_at":"2018-11-12T06:38:44Z","closed_at":null,"author_association":"NONE","body":"### Prerequisites\r\n\r\n- [x] I have my [server set up correctly](https://github.com/wirecard/magento2-ee/wiki/Installation#requirements).\r\n- [x] I am using a [supported version of Magento](https://github.com/wirecard/magento2-ee/wiki#overview-magento-2-shop-plugin).\r\n\r\n### Versions\r\n**Magento version:** 2.2.6\r\n**PHP version:**  7.0.32\r\n\r\n### Issue\r\nAccount must enabled with EUR, otherwise the checkout seamless form can't be loaded\r\n**Problem description:**\r\nTried credit card payment with an account doesn't accept currency EUR but HKD as the default currency in the Magento configuration, and find the seamless checkout form returned \"Not ready.. \" from posting to /engine/rest/seamless/renderform . When the program code changed in **TransactionService.php**, from 'EUR' to 'HKD', it works. \r\nrequested_amount_currency' => is_null($amount) ? 'EUR' : $amount->getCurrency(),\r\nchanged to:\r\nrequested_amount_currency' => is_null($amount) ? 'HKD' : $amount->getCurrency(),\r\n\r\n--\r\n\r\n\r\n\r\n...\r\n\r\n\r\n**Steps to reproduce:**\r\n1. Use a EE account and do the set-up does not allow currency EUR and allow another currency such as HKD\r\n2. In the Magento configuration, choose the default currency to HKD\r\n3. Try to checkout a item with credit card\r\n4. It shows \"an error loading the credit card form\".\r\n\r\n...\r\n"},"comment":{"url":"https://api.github.com/repos/wirecard/magento2-ee/issues/comments/437772691","html_url":"https://github.com/wirecard/magento2-ee/issues/161#issuecomment-437772691","issue_url":"https://api.github.com/repos/wirecard/magento2-ee/issues/161","id":437772691,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzc3MjY5MQ==","user":{"login":"tomazpu","id":32056440,"node_id":"MDQ6VXNlcjMyMDU2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/32056440?v=4","gravatar_id":"","url":"https://api.github.com/users/tomazpu","html_url":"https://github.com/tomazpu","followers_url":"https://api.github.com/users/tomazpu/followers","following_url":"https://api.github.com/users/tomazpu/following{/other_user}","gists_url":"https://api.github.com/users/tomazpu/gists{/gist_id}","starred_url":"https://api.github.com/users/tomazpu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomazpu/subscriptions","organizations_url":"https://api.github.com/users/tomazpu/orgs","repos_url":"https://api.github.com/users/tomazpu/repos","events_url":"https://api.github.com/users/tomazpu/events{/privacy}","received_events_url":"https://api.github.com/users/tomazpu/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T06:38:44Z","updated_at":"2018-11-12T06:38:44Z","author_association":"CONTRIBUTOR","body":"Hello, \r\n\r\ncan you please provide us with the plugin version, and the paymentSDK version you are using?\r\n\r\nBest regards, thank you. \r\nTomaz"}}
{"actor":{"display_login":"tomazpu"}}