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

Processing an Order

Finally when the user has reviewed the Order and entered in their Payment information, you may process the order using the following method.

Currently the only acceptable payment strategy is through Stripe and you can use our StripePaymentProvider SDK together with the UI SDK to collect and process payment info.

This call will asynchronously return a Receipt which you can show to the user as a successful confirmation of the order.

Traveler.processOrder(order, payment: payment) { (receipt, order) in 

}

Alternatively you can use the delegate pattern

Traveler.processOrder(order, payment: payment, delegate: self)
extension MyViewController: OrderProcessDelegate {
    func order(_ order: Order, didSucceedWithReceipt receipt: Receipt) {
    
    }
    
    func order(_ order: Order, didFailWithError error: Error) {
    
    }
}

Traveler.processOrder(order, payment, new ProcessOrderCallback() {
    @Override
    void onOrderProcessSuccess(Receipt receipt) {
    
    }
    
    @Override
    void onOrderProcessError(Error error) {
    
    }
});
PreviousCreating an OrderNextErrors

Last updated 6 years ago

Was this helpful?