> For the complete documentation index, see [llms.txt](https://docs.guestlogix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guestlogix.io/traveler/mobile-sdks/stripe-payment-sdk/booking-form/validation.md).

# Validation

The `BookingForm` you submit to create an `Order` must be complete and valid. You can check the validity of the form (though some validations will only be checked at the time of order creation and you must handle the error properly)

{% tabs %}
{% tab title="iOS" %}

```swift
let errors: [BookingFormError] = bookingForm.validate()
```

{% endtab %}

{% tab title="Android" %}

```java
List<BookingFormError> errors = bookingForm.validate();
```

{% endtab %}
{% endtabs %}
