{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-ruby/issues/574","repository_url":"https://api.github.com/repos/stripe/stripe-ruby","labels_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/574/comments","events_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/574/events","html_url":"https://github.com/stripe/stripe-ruby/issues/574","id":254208884,"number":574,"title":"Unable to use destination charge with shared customer token.","user":{"login":"ACPK","id":2019893,"avatar_url":"https://avatars1.githubusercontent.com/u/2019893?v=4","gravatar_id":"","url":"https://api.github.com/users/ACPK","html_url":"https://github.com/ACPK","followers_url":"https://api.github.com/users/ACPK/followers","following_url":"https://api.github.com/users/ACPK/following{/other_user}","gists_url":"https://api.github.com/users/ACPK/gists{/gist_id}","starred_url":"https://api.github.com/users/ACPK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ACPK/subscriptions","organizations_url":"https://api.github.com/users/ACPK/orgs","repos_url":"https://api.github.com/users/ACPK/repos","events_url":"https://api.github.com/users/ACPK/events{/privacy}","received_events_url":"https://api.github.com/users/ACPK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T04:40:58Z","updated_at":"2017-08-31T09:24:05Z","closed_at":"2017-08-31T09:24:05Z","author_association":"NONE","body":"    subscription = Stripe::Charge.create({\r\n      amount: total_amount,\r\n      currency: 'usd',\r\n      source: token.id,\r\n      destination: {\r\n        amount: ((1 - plan.service_fee) * total_amount).to_i,\r\n        account: plan.user.stripe_account\r\n      }\r\n    })"},"comment":{"url":"https://api.github.com/repos/stripe/stripe-ruby/issues/comments/326240841","html_url":"https://github.com/stripe/stripe-ruby/issues/574#issuecomment-326240841","issue_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/574","id":326240841,"user":{"login":"ob-stripe","id":23086931,"avatar_url":"https://avatars0.githubusercontent.com/u/23086931?v=4","gravatar_id":"","url":"https://api.github.com/users/ob-stripe","html_url":"https://github.com/ob-stripe","followers_url":"https://api.github.com/users/ob-stripe/followers","following_url":"https://api.github.com/users/ob-stripe/following{/other_user}","gists_url":"https://api.github.com/users/ob-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/ob-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ob-stripe/subscriptions","organizations_url":"https://api.github.com/users/ob-stripe/orgs","repos_url":"https://api.github.com/users/ob-stripe/repos","events_url":"https://api.github.com/users/ob-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/ob-stripe/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T09:24:05Z","updated_at":"2017-08-31T09:24:05Z","author_association":"CONTRIBUTOR","body":"Hi @ACPK, this is expected behavior. [Shared customers](https://stripe.com/docs/connect/shared-customers) are meant to be used for [direct charges](https://stripe.com/docs/connect/direct-charges), not [destination charges](https://stripe.com/docs/connect/destination-charges).\r\n\r\nWith destination charges, you should use either tokens created directly with the platform's publishable key or customer objects existing on the platform's account.\r\n\r\nAs this is not an issue with the Ruby library, I'm going to close the issue here. If you have followup questions, please reach out to support at https://support.stripe.com/email.\r\n"}}
{"actor":{"display_login":"ob-stripe"}}