#aravind_error
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_MUfU42hUhwHBEf
What are you trying to do exactly? getSources just returns a list currently attached Sources via this field: https://docs.stripe.com/api/customers/object#customer_object-sources
Not sure you can call .create on it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Hey! Taking over for my colleague.
above is the create card example I am able to find in the stripe documentation https://docs.stripe.com/api/cards/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
cus_Re3jTiORAT2KEM
yeah, but getSources() is returning me null
So in the expandList I need to added sources?
Yes exactly
okay thanks will try this
Welcome!
But between, why are you using sources ? It's deprecated you should use PaymentMethods API
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