#aravind_error

1 messages ¡ Page 1 of 1 (latest)

viral pendantBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1332322112504856646

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

verbal gate
median oar
#

req_MUfU42hUhwHBEf

verbal gate
median oar
#

Im trying to add a new card to an existing customer.
I have the card token of the new card to be added, and Im trying to add this new card to an existing customer

fossil tree
#

Hey! Taking over for my colleague.

median oar
fossil tree
#

Can you share the Cusomer Id ?

#

cus_Re3jTiORAT2KEM

median oar
#

cus_Re3jTiORAT2KEM

fossil tree
#

I see that the Customer do have attached sources

#

card_1Qkl5KG6LVRn1ExliJkEMATx

median oar
#

yeah, but getSources() is returning me null

fossil tree
#

In your Customer retrieve call you need to expand the sources

median oar
#

So in the expandList I need to added sources?

fossil tree
#

Yes exactly

median oar
#

okay thanks will try this

fossil tree
#

Welcome!

#

But between, why are you using sources ? It's deprecated you should use PaymentMethods API

median oar
#

Thanks it worked!!
We are in the process of migrating to payment/setup intents
We are doing it step by step, some services are still using card tokens, we faced this issue when we migrated to the newer stripe sdk version.
Thanks for your support

viral pendantBOT