{"action":"created","issue":{"url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1632","labels_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1632/labels{/name}","comments_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1632/comments","events_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1632/events","html_url":"https://github.com/activemerchant/active_merchant/pull/1632","id":64596984,"number":1632,"title":"MonerisGateway: Added ResAddToken functionality","user":{"login":"tzumby","id":301162,"avatar_url":"https://avatars.githubusercontent.com/u/301162?v=3","gravatar_id":"","url":"https://api.github.com/users/tzumby","html_url":"https://github.com/tzumby","followers_url":"https://api.github.com/users/tzumby/followers","following_url":"https://api.github.com/users/tzumby/following{/other_user}","gists_url":"https://api.github.com/users/tzumby/gists{/gist_id}","starred_url":"https://api.github.com/users/tzumby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzumby/subscriptions","organizations_url":"https://api.github.com/users/tzumby/orgs","repos_url":"https://api.github.com/users/tzumby/repos","events_url":"https://api.github.com/users/tzumby/events{/privacy}","received_events_url":"https://api.github.com/users/tzumby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-26T18:07:01Z","updated_at":"2015-10-24T17:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/1632","html_url":"https://github.com/activemerchant/active_merchant/pull/1632","diff_url":"https://github.com/activemerchant/active_merchant/pull/1632.diff","patch_url":"https://github.com/activemerchant/active_merchant/pull/1632.patch"},"body":"Hi guys,\r\n\r\nThis adds a new method called add_token to convert a temporary cc token into a permanent one. The temporary token is issued when using the Tokenized Moneris transaction (embedding their iframe to collect the credit card number). You can use that temporary token for 15 minutes but after that it expires. This is useful for customers who opt in to save their payment method for future purchases.\r\n\r\nI added the failed and success responses to the spec but unfortunately it's not possible to test this. I could get a temporary token and add it to the tests but since it expires in 15 minutes it will keep failing. I reached out to Moneris to see if there's an easy way to get a temp token, or at least a \"permanent\" temporary token that can be used for tests but it doesn't look like it's possible.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/activemerchant/active_merchant/issues/comments/150835950","html_url":"https://github.com/activemerchant/active_merchant/pull/1632#issuecomment-150835950","issue_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/1632","id":150835950,"user":{"login":"ntalbott","id":223,"avatar_url":"https://avatars.githubusercontent.com/u/223?v=3","gravatar_id":"","url":"https://api.github.com/users/ntalbott","html_url":"https://github.com/ntalbott","followers_url":"https://api.github.com/users/ntalbott/followers","following_url":"https://api.github.com/users/ntalbott/following{/other_user}","gists_url":"https://api.github.com/users/ntalbott/gists{/gist_id}","starred_url":"https://api.github.com/users/ntalbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntalbott/subscriptions","organizations_url":"https://api.github.com/users/ntalbott/orgs","repos_url":"https://api.github.com/users/ntalbott/repos","events_url":"https://api.github.com/users/ntalbott/events{/privacy}","received_events_url":"https://api.github.com/users/ntalbott/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T17:30:07Z","updated_at":"2015-10-24T17:30:07Z","body":"@tzumby this looks generally OK, but will need a unit and remote test before we can merge it. Thanks!"}}