{"action":"created","issue":{"url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1809","labels_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1809/labels{/name}","comments_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1809/comments","events_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1809/events","html_url":"https://github.com/activemerchant/active_merchant/pull/1809","id":97702377,"number":1809,"title":"QuickPay: use the value of the alpha3 country code, instead of trying to include the full object","user":{"login":"girasquid","id":60324,"avatar_url":"https://avatars.githubusercontent.com/u/60324?v=3","gravatar_id":"","url":"https://api.github.com/users/girasquid","html_url":"https://github.com/girasquid","followers_url":"https://api.github.com/users/girasquid/followers","following_url":"https://api.github.com/users/girasquid/following{/other_user}","gists_url":"https://api.github.com/users/girasquid/gists{/gist_id}","starred_url":"https://api.github.com/users/girasquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girasquid/subscriptions","organizations_url":"https://api.github.com/users/girasquid/orgs","repos_url":"https://api.github.com/users/girasquid/repos","events_url":"https://api.github.com/users/girasquid/events{/privacy}","received_events_url":"https://api.github.com/users/girasquid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-28T13:05:46Z","updated_at":"2015-07-28T17:10:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/1809","html_url":"https://github.com/activemerchant/active_merchant/pull/1809","diff_url":"https://github.com/activemerchant/active_merchant/pull/1809.diff","patch_url":"https://github.com/activemerchant/active_merchant/pull/1809.patch"},"body":"@aprofeit @ivanfer \r\n\r\nOpen to suggestions on how best to test this - as far as I can tell the remote test that I added in [the previous PR](https://github.com/activemerchant/active_merchant/pull/1805) shouldn't have been passing, because when I dumped the request the country code was being passed in as a string representation of the entire [CountryCode object](https://github.com/activemerchant/active_merchant/blob/fdace518c3e30ee9e248219b926f2cf26f2ed4f5/lib/active_merchant/country.rb#L10)."},"comment":{"url":"https://api.github.com/repos/activemerchant/active_merchant/issues/comments/125681355","html_url":"https://github.com/activemerchant/active_merchant/pull/1809#issuecomment-125681355","issue_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1809","id":125681355,"user":{"login":"girasquid","id":60324,"avatar_url":"https://avatars.githubusercontent.com/u/60324?v=3","gravatar_id":"","url":"https://api.github.com/users/girasquid","html_url":"https://github.com/girasquid","followers_url":"https://api.github.com/users/girasquid/followers","following_url":"https://api.github.com/users/girasquid/following{/other_user}","gists_url":"https://api.github.com/users/girasquid/gists{/gist_id}","starred_url":"https://api.github.com/users/girasquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girasquid/subscriptions","organizations_url":"https://api.github.com/users/girasquid/orgs","repos_url":"https://api.github.com/users/girasquid/repos","events_url":"https://api.github.com/users/girasquid/events{/privacy}","received_events_url":"https://api.github.com/users/girasquid/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T17:10:09Z","updated_at":"2015-07-28T17:10:09Z","body":"It doesn't appear to be - this is the output of what was POST'd to QuickPay:\r\n```<- \"{\\\"currency\\\":\\\"CAD\\\",\\\"order_id\\\":\\\"c1.10\\\",\\\"invoice_address\\\":{\\\"name\\\":\\\"Luke Hutscal\\\",\\\"street\\\":\\\"22 Murray Street\\\",\\\"city\\\":\\\"Ottawa\\\",\\\"region\\\":\\\"Apartment 212\\\",\\\"zip_code\\\":\\\"K1N1G9\\\",\\\"country_code\\\":{\\\"value\\\":\\\"DEU\\\",\\\"format\\\":\\\"alpha3\\\"}},\\\"metadata\\\":{\\\"manual_entry\\\":false}}\"```\r\n\r\nYou can see the `country_code` key has the entire `CountryCode` object, instead of just the string \"DEU\"."}}