#typescripter-pms-list

1 messages · Page 1 of 1 (latest)

raw rain
#

hello! reading one sec

#

what version of stripe-node library are you on?

#

ah also you want this to list PaymentMethods

slender stag
#

stripe console shows user has payment methods

slender stag
#

"stripe": "^8.179.0",

raw rain
#

ok checking

slender stag
#

i want to list cards/payment methods to show user the choice on checkout

raw rain
#

can you click into any of those cards and see if they have a PaymentMethod ID ? or a Source ID?

slender stag
raw rain
#

no screenshots pls, easier to parse just sharing the IDs
but I have a picture, looking.

so listSources() won't work as those are PaymentMethods there and not Source objects, so you want to list PaymentMethods

now why that isn't being recognized as a function in your code, looking

#

ah got it

slender stag
#

ok sorry, here are the IDs: pm_1JqjSJBKVErMxe43VjB63VB3 and pm_1JqjNeBKVErMxe436IJzHD4R

raw rain
#

customers.listPaymentMethods was added in v8.180.0

#

and you're on a version before that, you need to update your stripe-node

slender stag
#

ok thank you very much!

#

i updated will try now

#

ok it works

#

thanks!