#Louis-payment-element-restrict-band
1 messages ยท Page 1 of 1 (latest)
Hey, specifically which brands do you want to disable? AFAIK this isn't possible
(can only disable wallets like Apple Pay)
I want only visa and mastercard
Unfortunately not possible. Instead you'd need to check details on the Payment Method object created by the Setup Intent: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-brand
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, thank you ๐
Np!
sorry for the return but it's not possible to have the information in the js return of stripe.confirmSetup ?
Hmm, I don't believe so. What is returned currently?
the errors
I believe it'll return the Setup Intent object on success
Which will have a payment_method field (but only the ID)
no it's return only error because if it's success it go on the return_url
Got it
so it's definitely not possible for you ?
too bad, but I would have tried ๐
Seems not I'm afraid. You'd need to retrieve the created PM via the API: https://stripe.com/docs/api/payment_methods/retrieve
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 thank you
Sure, np!