Skip to content

Instantly share code, notes, and snippets.

@adamjstevenson
Created October 22, 2017 19:06
Show Gist options
  • Save adamjstevenson/e0a7beced79213091f6f49db18acdd4d to your computer and use it in GitHub Desktop.
Save adamjstevenson/e0a7beced79213091f6f49db18acdd4d to your computer and use it in GitHub Desktop.
Retrieve balance history for a Stripe Connect payout
# 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