#JeremyFlight
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
So you are using this integration https://stripe.com/docs/payments/card-element
And want to allow users to submit the form only if the form is completely filled?
I'm using Stripe JS so my code looks more like this:
const stripe = Stripe('pk_test_XXX);
let elements = stripe.elements();
let cardElement = elements.create("card", {
hidePostalCode: true,
});
cardElement.mount("#cardElement");
And I need to force the user to complete the card number, expiry date and CV2 number before allowing the processing to continue...
I think you could use this to check the complete boolean https://stripe.com/docs/js/element/events/on_change?type=cardElement
Yes, that looks like it should do it. Thanks.