does anyone know how to clear the stripe element input form correctly??
var card = elements.create(“card”, { style: style });
card.mount("#card-element");
addCardButton.addEventListener(‘click’, function (ev) {
card.clear("#card-element");
});
user clicks show modal containing form. the card form shows. if the form is partially filled and the user clicks show modal button again the form doesnt clear as it should.
Community Page
Last updated:
Last updated: