the problem that I'm facing is:
I do validations on the client side using validate()
(https://jqueryvalidation.org).
On the blur event I call ($this).valid();
for each field in my form.
Before loading sagepay.js (https://pi-test.sagepay.com/api/v1/js/) the validation works as intended.
If I load sagepay.js (it does not matter when) ($this).valid()
always returns true
.
I tried changing the event but sagepay overrides all these events: blur
focus
focusin
focusout
load
resize
scroll
unload
click
dblclick
mousedown
mouseup
mousemove
mouseover
mouseout
mouseenter
mouseleave
change
select
submit
keydown
keypress
keyup
error
contextmenu
My question is : What can i do to keep validating using ($this).valid()
or why does sagepay override valid()
?