{"action":"opened","issue":{"url":"https://api.github.com/repos/wp-invoice/wp-invoice/issues/178","repository_url":"https://api.github.com/repos/wp-invoice/wp-invoice","labels_url":"https://api.github.com/repos/wp-invoice/wp-invoice/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/wp-invoice/wp-invoice/issues/178/comments","events_url":"https://api.github.com/repos/wp-invoice/wp-invoice/issues/178/events","html_url":"https://github.com/wp-invoice/wp-invoice/issues/178","id":134385920,"number":178,"title":"Better credit card management per customer with Stripe","user":{"login":"lazharichir","id":12215372,"avatar_url":"https://avatars.githubusercontent.com/u/12215372?v=3","gravatar_id":"","url":"https://api.github.com/users/lazharichir","html_url":"https://github.com/lazharichir","followers_url":"https://api.github.com/users/lazharichir/followers","following_url":"https://api.github.com/users/lazharichir/following{/other_user}","gists_url":"https://api.github.com/users/lazharichir/gists{/gist_id}","starred_url":"https://api.github.com/users/lazharichir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazharichir/subscriptions","organizations_url":"https://api.github.com/users/lazharichir/orgs","repos_url":"https://api.github.com/users/lazharichir/repos","events_url":"https://api.github.com/users/lazharichir/events{/privacy}","received_events_url":"https://api.github.com/users/lazharichir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-17T20:06:18Z","updated_at":"2016-02-17T20:06:18Z","closed_at":null,"body":"When you create a new invoice for a brand new customer, and the customer pays with credit card A, it creates the user on Stripe and add this first card (A) to his stripe profile.\r\n\r\nIf you then create a new invoice for the same customer, and this time he pays it with a new card (B), this new charge on stripe isn't linked to the customer. It gets charges but as a regular single payment.\r\n\r\nIt would be great if the card can be added to his collection of sources/cards, instead of creating a single charge that is being linked to no customer although the customer actually exists."}}