{"action":"created","issue":{"url":"https://api.github.com/repos/charge-io/chargeio-net/issues/1","labels_url":"https://api.github.com/repos/charge-io/chargeio-net/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/charge-io/chargeio-net/issues/1/comments","events_url":"https://api.github.com/repos/charge-io/chargeio-net/issues/1/events","html_url":"https://github.com/charge-io/chargeio-net/pull/1","id":67002065,"number":1,"title":"Adding support to send a CardId as a Method","user":{"login":"peidelman","id":2170870,"avatar_url":"https://avatars.githubusercontent.com/u/2170870?v=3","gravatar_id":"","url":"https://api.github.com/users/peidelman","html_url":"https://github.com/peidelman","followers_url":"https://api.github.com/users/peidelman/followers","following_url":"https://api.github.com/users/peidelman/following{/other_user}","gists_url":"https://api.github.com/users/peidelman/gists{/gist_id}","starred_url":"https://api.github.com/users/peidelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peidelman/subscriptions","organizations_url":"https://api.github.com/users/peidelman/orgs","repos_url":"https://api.github.com/users/peidelman/repos","events_url":"https://api.github.com/users/peidelman/events{/privacy}","received_events_url":"https://api.github.com/users/peidelman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T22:13:57Z","updated_at":"2015-04-07T22:26:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/charge-io/chargeio-net/pulls/1","html_url":"https://github.com/charge-io/chargeio-net/pull/1","diff_url":"https://github.com/charge-io/chargeio-net/pull/1.diff","patch_url":"https://github.com/charge-io/chargeio-net/pull/1.patch"},"body":"Currently on my company, we are attempting to perform a `Charge` sending an stored Credit Card `Id` as a `Method` (similar to using the `TokenId` as a `Method`). I didn't see any support for this on the library, so I did this code modification in order to add some support for that. It uses a very similar logic from the `TokenReferenceOptions` class, you will now see a `CardReferenceOptions` class. Unit test passed."},"comment":{"url":"https://api.github.com/repos/charge-io/chargeio-net/issues/comments/90749175","html_url":"https://github.com/charge-io/chargeio-net/pull/1#issuecomment-90749175","issue_url":"https://api.github.com/repos/charge-io/chargeio-net/issues/1","id":90749175,"user":{"login":"jwsparrow","id":5278576,"avatar_url":"https://avatars.githubusercontent.com/u/5278576?v=3","gravatar_id":"","url":"https://api.github.com/users/jwsparrow","html_url":"https://github.com/jwsparrow","followers_url":"https://api.github.com/users/jwsparrow/followers","following_url":"https://api.github.com/users/jwsparrow/following{/other_user}","gists_url":"https://api.github.com/users/jwsparrow/gists{/gist_id}","starred_url":"https://api.github.com/users/jwsparrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwsparrow/subscriptions","organizations_url":"https://api.github.com/users/jwsparrow/orgs","repos_url":"https://api.github.com/users/jwsparrow/repos","events_url":"https://api.github.com/users/jwsparrow/events{/privacy}","received_events_url":"https://api.github.com/users/jwsparrow/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T22:26:56Z","updated_at":"2015-04-07T22:26:56Z","body":"Hi, Philippe! Sorry this isn't better documented, but you can use the TokenReferenceOptions class for either one-time tokens or saved cards and banks. The unit test TestChargeUsingCardToken in TransactionServiceTest provides an example of creating a saved Card and then using it to perform a charge."}}