Happy Business Starts Here

Error validation on TAB out for hosted payment page 2.0

Error validation on TAB out for hosted payment page 2.0

This is a UI improvent for Hosted payment page 2.0 with inline style and external button.

Current behaviour : Credit card fields are validated on submiting the payment form. Then user can enter correct values. But the errors don't go away. On next submit fields gets validated again and submit action works if all forms are valid.

Proposed behaviour: Make the basic field validations happen when a user leaves an input by chnaging focus to next field by pressing tab or clicking somewhere else. This will also clear the errors immediately if field is valid. This can be a configurable option in the parameters of z.render method.