{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/166","labels_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/166/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/166/events","html_url":"https://github.com/paypal/PayPal-Ruby-SDK/issues/166","id":116425267,"number":166,"title":"How to update a credit card","user":{"login":"benross","id":1672652,"avatar_url":"https://avatars.githubusercontent.com/u/1672652?v=3","gravatar_id":"","url":"https://api.github.com/users/benross","html_url":"https://github.com/benross","followers_url":"https://api.github.com/users/benross/followers","following_url":"https://api.github.com/users/benross/following{/other_user}","gists_url":"https://api.github.com/users/benross/gists{/gist_id}","starred_url":"https://api.github.com/users/benross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benross/subscriptions","organizations_url":"https://api.github.com/users/benross/orgs","repos_url":"https://api.github.com/users/benross/repos","events_url":"https://api.github.com/users/benross/events{/privacy}","received_events_url":"https://api.github.com/users/benross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T21:29:43Z","updated_at":"2015-11-17T17:02:50Z","closed_at":null,"body":"Hey Guys,\r\n\r\nLooking for any documentation / help on how to update an existing credit card. \r\n\r\nLet's say I want to change the expire year...I'd expect to able to do\r\ncc = @api::CreditCard.find(the_paypal_id)\r\ncc.expired_year = 2020\r\ncc.update\r\n\r\nThis returns MALFORMED_REQUEST error. Tried looking at update examples for other models but couldn't find anything that translates. Really appreciate any pointers in the right direction."},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/comments/157434124","html_url":"https://github.com/paypal/PayPal-Ruby-SDK/issues/166#issuecomment-157434124","issue_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/166","id":157434124,"user":{"login":"ppmtscory","id":6306449,"avatar_url":"https://avatars.githubusercontent.com/u/6306449?v=3","gravatar_id":"","url":"https://api.github.com/users/ppmtscory","html_url":"https://github.com/ppmtscory","followers_url":"https://api.github.com/users/ppmtscory/followers","following_url":"https://api.github.com/users/ppmtscory/following{/other_user}","gists_url":"https://api.github.com/users/ppmtscory/gists{/gist_id}","starred_url":"https://api.github.com/users/ppmtscory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppmtscory/subscriptions","organizations_url":"https://api.github.com/users/ppmtscory/orgs","repos_url":"https://api.github.com/users/ppmtscory/repos","events_url":"https://api.github.com/users/ppmtscory/events{/privacy}","received_events_url":"https://api.github.com/users/ppmtscory/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T17:02:50Z","updated_at":"2015-11-17T17:02:50Z","body":"Documentation for updating a stored card can be found [here](https://developer.paypal.com/docs/api/#update-a-stored-credit-card).  That is a standard curl example but you can also use the [update payment](https://github.com/paypal/PayPal-Ruby-SDK/blob/master/samples/payment/update.rb) sample as a reference point."}}