Skip to content

Instantly share code, notes, and snippets.

@fedesoria
Created March 8, 2016 22:09
Show Gist options
  • Save fedesoria/acb72c23cff255113c89 to your computer and use it in GitHub Desktop.
Save fedesoria/acb72c23cff255113c89 to your computer and use it in GitHub Desktop.
pry(#<Merchant>)> stripe_customer.sources.all
=> #<Stripe::ListObject:0x3fe9f4977f34> JSON: {
"object" : "list",
"data" : [],
"has_more" : false,
"url" : "/v1/customers/cus_7i3TMi5sqH78iY/sources"
}
[2] pry(#<Merchant>)> stripe_customer.sources.all
=> #<Stripe::ListObject:0x3fe9f47c0218> JSON: {
"object" : "list",
"data" : [],
"has_more" : false,
"url" : "/v1/customers/cus_7i3TMi5sqH78iY/sources"
}
[3] pry(#<Merchant>)> stripe_customer.sources.all
=> #<Stripe::ListObject:0x3fe9f464eb50> JSON: {
"object" : "list",
"data" : [
{
"id" : "ba_82xZOcvz6SNFx9",
"object" : "bank_account",
"account_holder_name" : "John Doe",
"account_holder_type" : "company",
"bank_name" : "STRIPE TEST BANK",
"country" : "US",
"currency" : "usd",
"customer" : "cus_7i3TMi5sqH78iY",
"fingerprint" : "rwb34mTnXGxlmtBx",
"last4" : "6789",
"metadata" : {},
"routing_number" : "110000000",
"status" : "new",
"name" : "John Doe"
}
],
"has_more" : false,
"url" : "/v1/customers/cus_7i3TMi5sqH78iY/sources"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment