> 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/creating-an-order.md).

# Creating an Order

Now that the user has completed the `BookingForm`, it is time to create the `Order`. The following method will create the `Order` which you can then present to the user for review.

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

```swift
Traveler.createOrder(bookingForm: bookingForm) { (order, error) in

}
```

Alternatively you can use the delegate pattern

```swift
Traveler.createOrder(bookingForm: bookingForm, delegate: self)
```

```swift
extension MyViewController: OrderCreateDelegate {
    func orderCreationDidSucceed(_ order: Order) {
    
    }
    
    func orderCreationDidFail(_ error: Error) {
    
    }
}
```

{% endtab %}

{% tab title="Android" %}

```java
Traveler.createOrder(bookingForm, new OrderCreateCallback() {
    @Override
    void onOrderCreateSuccess(Order order) {
    
    }

    @Override
    void onOrderCreateFailure(Error error) {
    
    }
});
```

{% endtab %}
{% endtabs %}
