Created
October 22, 2017 18:58
-
-
Save adamjstevenson/25b1c647e0ad732f7e618bf5cb3d5f90 to your computer and use it in GitHub Desktop.
List payouts for a connected account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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