--- title: "Confirming a Flex Pay Booking" slug: "confirming-an-uplift-booking-ios" updated: 2026-05-22T16:07:49Z published: 2026-05-22T16:07:49Z canonical: "developer.upgrade.com/confirming-an-uplift-booking-ios" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.upgrade.com/llms.txt > Use this file to discover all available pages before exploring further. # Confirming a Flex Pay Booking ### Confirming a Flex Pay Booking Once a virtual payment card has been processed and the booking has been confirmed by you, a call containing a confirmation number for the booking must be sent to Uplift's API. This call informs Flex Pay that the booking was successfully completed and allows Flex Pay to provide a better customer service experience for all customers, as it will be used as a reference by Flex Pay's customer support representatives. ``` // Using a callback orderManager.orderSuccess(with: "your_confirmation_id", completionBlock: { result in switch result { case .success(_): // Success booking confirmation case .failure(let error): // An error has happened during confirmation request } }) // Using Async try await orderManager.orderSuccessAsync(with: "your_confirmation_id") ``` Should an error occur in your system that prevents a traveler from successfully booking a trip and/or receiving a confirmation, a brief, human-friendly message describing the error that occurred must be passed to the Api. This will be used as a reference by Flex Pay's customer support representatives also. ``` let error = ULOrderError(errorType: .fatal, errorMessage: "A critical issue has happened") // Using a callback orderManager.orderFail(with: error, completionBlock: { result in switch result { case .success(_): // Success failed booking confirmation case .failure(let error): // An error has happened during confirmation request } }) // Using Async try await orderManager.orderFailAsync(with: error) ``` ### Deleting an Order To delete an order once the booking is complete and confirmation has been sent to Flex Pay, call this method ``` orderManager.deleteOrder() ```