#Pain-PaymentElement

1 messages · Page 1 of 1 (latest)

gleaming dome
crimson sinew
#

Is there no function I can call to, to just validate it?

gleaming dome
#

You don't need to call a function to validate, StripeElement validates the input automatically.

crimson sinew
#

Alright, I've just disabled the button until the complete parameter is returned. I was looking for a function but this works too.

#

Is there a way to get the last4 before submitting?

#

(like from the elements maybe?)

gleaming dome
#

You can, but you need to use cardElement instead of paymentElement.

crimson sinew
#

I see, thanks for the info.