#wei - retrieve credit cards

1 messages ยท Page 1 of 1 (latest)

upper sphinx
clever crest
clever crest
#

Should we be able to get it from /sources too?

#

It looks like Pompey is offline. @grand lotus is there anyway you could respond to our query?

grand lotus
#

What are you trying to get? What is the end-goal/final-product? Is it just a list of every thing Payment Method?

upper sphinx
#

And I am back again. I don't think these should show up as sources as well. Do you need these as a source for something that you are doing?

clever crest
#

I'm trying to understand why this card is not considered a source. Or the difference between payment method and source.

upper sphinx
#

Which doc are you working through there?

#

Sources are deprecated and it is typically recommended to work with payment methods instead unless you are working with a feature that hasn't been ported to payment methods yet

clever crest
#

hmm it doesn't say deprecated at the link

upper sphinx
clever crest
#

we have legacy integration already built and I'm debugging why the card didn't show up for this customer using the api linked. ๐Ÿ˜ƒ

upper sphinx
#

There we go. That was my next question.

clever crest
#

๐Ÿ˜…

upper sphinx
#

Thanks for the clarification. I will check in to that payment method in a minute

clever crest
#

Thank you!

#

We have a few more examples if needed

upper sphinx
#

To be clear, we still support sources fully and I was not trying to push you to migrate. I just sometimes assume most people on this server doing new work when they aren't.

#

Sure that would be helpful thank you

clever crest
#

Got it!

#

These are examples of folks with card(s) on dashboard but the cards are missing in source endpoint:
cus_LckBmcFSjmUf67
cus_LC4r9jjUO2vdQs
cus_JbZZj6LJBmJPW0

#

For the first customer, I also tried the customer endpoint

curl -G https://api.stripe.com/v1/customers/cus_LckBmcFSjmUf67 \
-u [token]:

and no cards were returned there either.

upper sphinx
#

Did you recently change anything about your integration? Was this working before and stopped or is this just sporadically happening now?

clever crest
#

We have not changed the integration recently.

upper sphinx
#

Gotcha. So your page builds the UI based on the sources listed for that customer and for some of them nothing is showing up now?

clever crest
#

Correct.

upper sphinx
#

Thank you. Looking again at what happened here.

#

Do you have an account that you know is properly seeing this page?

clever crest
#

Do you mean an example customer that has correct cards returned in source endpoint?

#

Most customers are working correctly. For example, https://api.stripe.com/v1/customers/cus_Ly20eGMLnlMpVM/sources

upper sphinx
#

Awesome thank you. Just wanted to look at how those are prepared and attached

clever crest
upper sphinx
#

Apologies, for some reason I can't see how the source was created on the customer that you do see sources for but I am still trying to look. Do you know off the top of your head if you add sources other than through attaching payment methods when taking payment?

dense panther
#

@clever crest those customers have PAymentMethods attached to them pm_123 that's a completely separate API

clever crest
dense panther
#

they are interoperable but one way

#

The PaymentMethods API is newer and shipped in 2018. When we built it we made sure that legacy objects like card_123 and src_123 worked as PaymentMethods, just not the opposite

#

as long as you use the newer API, you will get all the objects

clever crest
dense panther
#

that's entirely expected

#

If you want PaymentMethods you use the API I mentioned above

#

But you're kinda misunderstnading a lot of this. A PaymentMethod pm_123 can never work with the Charges API. It only works with PaymentIntents and SetupIntents

clever crest
#

Thank you I will message back if I have any questions.