Created
October 22, 2017 19:06
-
-
Save adamjstevenson/e0a7beced79213091f6f49db18acdd4d to your computer and use it in GitHub Desktop.
Retrieve balance history for a Stripe Connect payout
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
# Get the balance transactions from the payout for the payout transactions view | |
@txns = Stripe::BalanceTransaction.list( | |
{ | |
payout: params[:id], # The ID of the payout you want transactions for | |
expand: ['data.source.source_transfer'], # Expand the source_transfer for extra detail | |
limit: 100 | |
}, | |
{ stripe_account: current_user.stripe_account } | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment