Skip to content

Instantly share code, notes, and snippets.

@adamjstevenson
Created October 22, 2017 18:42
Show Gist options
  • Save adamjstevenson/c4255c0ffb993e385072bbad90329ff5 to your computer and use it in GitHub Desktop.
Save adamjstevenson/c4255c0ffb993e385072bbad90329ff5 to your computer and use it in GitHub Desktop.
List charges for a connected account
# Last 100 charges
payments = Stripe::Charge.list(
{
limit: 100, # The number of charges to retrieve (between 1 and 100)
expand: ['data.source_transfer', 'data.application_fee'] # Expand other objects for additional detail
},
{ stripe_account: current_user.stripe_account } # The Stripe ID of the user viewing the dashboard
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment