Validation
Currently validation is only imposed on methods exposed by fatzebra.js. See Methods.
Support for propagating Hosted Payments Page (HPP) form validation errors is on the road map.
Event | Description | Applicable Methods |
---|---|---|
fz.validation.error | Client-side validation errors occurred while calling fatzebra.js methods. | verifyCard, renderPaymentsPage, checkout |
Examples of validation errors include:
Required fields
{
errors: [
"/paymentIntent/payment/amount is required",
...
],
data: null
}
Data type invalid
{
errors: [
"/paymentIntent/payment/amount should be an integer",
...
],
data: null
}
Updated over 3 years ago