#hamid-sources

1 messages · Page 1 of 1 (latest)

shy spade
#

The first method retrieves one source by ID, the second lists all sources for that customer

elfin arch
#

so first method take one extra param?

#

other then customer id?

shy spade
#

What version of stripe PHP are you susing?

elfin arch
#

i am using ruby on rails

#

basically asking coz

#

I am using this to retrieve bank_accounts of customer

#
stripe_bank_accounts = Stripe::Customer.list_sources(
          stripe_customer.id,
          {object: 'bank_account', limit: 50}
        )
#

can i use same for sepa_debit?

#

will this work

#
          stripe_customer.id,
          {object: 'sepa_debit', limit: 50}
        )```
shy spade
#

It should do, have you tried it?

elfin arch
#

yup, just

#

didn't get any error

#

so it fine to use this

shy spade
#

If you didn't get an error then your request succeeded, it's probably just that that customer doesn't have any sepa debit sources attached to it

elfin arch
#

sure

#

thansk

#

there is a customer cus_KE1AqP7rKiI9YX

elfin arch
#

I am not able to retrieve any source list against the customer

#

i have used for sepa_payment

#

I have customer and payment_method id

#

but getting resource back

#

e.g.

#
pm_1JZZ7qB9MHxVN54cykpKSWfO
#

cus_KE1AqP7rKiI9YX

#

this is the customer i created and added its sepa with the above pm

#

and charged as well

#

but not retrieving it in sources list

#

please guide