#fiery_chipmunk_65070
1 messages · Page 1 of 1 (latest)
There's no built-in limit for this so you need to implement it by yourself.
to support my question, in this default ui no option to limit?
question: what is the default add cards limit?
No, I don't see any limits in related public doc.
Thank you. any related docs for me to customise the add cards limit?
So before you execute any code to add a card, you can call this API https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods to check the number of payment methods that a customer already have
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Noted. meaning to implement, i have to customise all the UI, API "list cards", "Edit" button, "Add" new card button, "Set up" button
Not necessary, you can do the check before you present the PaymentSheet
from the screenshoot shared, user are allow to press "edit" button to remove card if the limit reach, any on press action when user press? or any alternative way to block user to press "add" button?
No I don't see any options to customize this behaviour
Got it, there are no option to disabled or hide "add" button also
No. Can you tell me what's your concern on customer having more than 3 payment methods?
for me no, but this is customer requirements
trying to use less effort to implement
Maybe you want to clarify with your client for their concern on this? I don't really see a need to implement such limit.