#toxiCity
1 messages · Page 1 of 1 (latest)
Can you share what you would like to achieve? Updating a Setup Intent can only be performed in API
Not at client StripeJS
I see. for the update of the setup intent, Can I also change the card number cvc and valid until values?
Can you share what your use case and what you intend to update?
for example, a user wants to change his current card for the setup intent
how will I achieve that
I will need input from the user then send to backend
If the Setup Intent has been succeeded for current card, you should create a new Setup Intent to collect the new card.
Once a Setup Intent is succeeded, it can be updated to collect new payment method. You should use Setup Intent instead.
is there a way to just update the card?
To remove the existing card, you can detached the payment method: https://stripe.com/docs/api/payment_methods/detach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but the same setup intent
When you mean updating the existing card, which field specifically?
Is it the card number, or just expiry?
I mean, the user want to update the card for the payment. new card number, cvc and valid until
basically a new card but the same intent
also is there a way to display the current billing method
That's not possible. You must use new Setup Intent to collect a new a new card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can't update the card number in existing Setup Intent
so this API for update is only usable for what purpose
This is generally used to update before the Setup Intent is succeeded or change its description
Once the Setup Intent is succeeded, there isn't much that it can be updated
ok
and the existing card cannot be displayed?
is that correct
how do other companies display their current billing method
from my other apps, I can see the last digits of my card
The steps will be:
- Retrieve customer's payment methods: https://stripe.com/docs/api/payment_methods/customer_list
- Display them in your app
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok thanks. got the gist now