Documentation
iOS ReferenceAndroid Reference
  • Overview
  • Release Notes
    • 2019 Release Notes
  • Quick Start
    • Configuration settings
  • Getting Started
    • Environments
    • Domain Whitelist
  • Traveler
    • Overview
    • Mobile SDKs
      • Overview
      • Minimum Requirements
      • iOS
        • Installation
        • Getting Started
      • Android
        • Installation
        • Getting Started
      • Usage
        • Booking Item Search
          • Booking Item Search UI
        • Flight Search
        • Catalog
        • Catalog Item Details
        • Availabilities
        • Getting Passes
        • Booking Form
          • Questions
          • Answers
          • Validation
        • Creating an Order
        • Processing an Order
      • Errors
    • Traveler API
    • Payments
  • Partner
    • Overview
    • Partner API
  • Glossary
    • API Convention
      • Error Codes
      • API Rate Limiting
    • Terminology
  • Support
    • Contact
Powered by GitBook
On this page

Was this helpful?

  1. Traveler
  2. Mobile SDKs
  3. Usage

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.

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

}

Alternatively you can use the delegate pattern

Traveler.createOrder(bookingForm: bookingForm, delegate: self)
extension MyViewController: OrderCreateDelegate {
    func orderCreationDidSucceed(_ order: Order) {
    
    }
    
    func orderCreationDidFail(_ error: Error) {
    
    }
}

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

    @Override
    void onOrderCreateFailure(Error error) {
    
    }
});
PreviousValidationNextProcessing an Order

Last updated 6 years ago

Was this helpful?