Skip to content

Instantly share code, notes, and snippets.

@adamjstevenson
Created October 22, 2017 18:58
Show Gist options
  • Save adamjstevenson/25b1c647e0ad732f7e618bf5cb3d5f90 to your computer and use it in GitHub Desktop.
Save adamjstevenson/25b1c647e0ad732f7e618bf5cb3d5f90 to your computer and use it in GitHub Desktop.
List payouts for a connected account
# Last 100 payouts from the custom account to their bank account
@payouts = Stripe::Payout.list(
{
limit: 100,
expand: ['data.destination'] # Get some extra detail about the bank account
},
{ stripe_account: current_user.stripe_account } # Again, authenticating with the ID of the connected account
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment