#kushal
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center 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.
sorry i don't have the acces tot he stripe dashboard i am doing this on python shell
ok
i my web app i want to update the card for the user who has subscribed to the plan
for that https://stripe.com/docs/api/cards/object should work right?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it depends exactly what you're trying to do.
update in what way exactly? to replace the card with a new one they enter?
yes
then if you're using those legacy APIs you would use https://stripe.com/docs/api/customers/update?lang=node#update_customer-source or https://stripe.com/docs/api/cards/create
hi am very new to the payment can you please tell me what exactly i need to do?
do i have to create an new card for the customer and delete the previous one ?
or i can modify the the subscription and replace the new card with existing one?
if you're new I'd suggest using our current integrations instead of these legacy Card/Source objects.
We have a fully worked guide here : https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details of how to use our hosted Checkout page to accept card details from a customer and update them on a Customer for work for future subscription payments. That's what I would use.