#RMoura_JS-paymentelement
1 messages · Page 1 of 1 (latest)
have you found something yet?
not yet, sorry! got distracted , looking
Btw what should I do when i try to create a setupintent and then pay with the saved payment method
using this card
?
what do you mean exactly?
the guide for saving a card with a SetupIntent and charging it later is https://stripe.com/docs/payments/save-and-reuse
as for the first question, not sure this answers it directly but you could collapse the elements while the form is submitted.
https://stripe.com/docs/js/elements_object/collapse_payment_element
(I modified the example code at https://stripe.com/docs/payments/quickstart a little to add paymentElement.collapse(); to the setLoading function)