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.

EventDescriptionApplicable Methods
fz.validation.errorClient-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
}