Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. First off, to get the corresponding payment id you'd need to do two steps. The first step is to get the id of the transfer associated with the charge which is in the `transfer` property on the charge object [1]. Then, you would retrieve that transfer [2] and in the transfer object [3] you'd see the `destination_payment` property corresponding to the payment on the connected account (py_XXX).
  2.  
  3. Then, once you get this, you'd call the Update Charge API [4] using the `Stripe-Account` header [5] so that you can set the description you want on that payment.
  4.  
  5. [1] https://stripe.com/docs/api#charge_object
  6. [2] https://stripe.com/docs/api#retrieve_transfer
  7. [3] https://stripe.com/docs/api#transfer_object
  8. [4] https://stripe.com/docs/api#update_charge
  9. [5] https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement