ULOrderManager

Keep the current state of the order and its offer. You can also manage your order here.

Functions

Link copied to clipboard

Deletes the current order, its offer and tries to dismiss the displayed checkout flow.

Link copied to clipboard

You can use this method to present the checkout view in embed mode.

Link copied to clipboard

Indicates whether there is a valid offer for the current order or not.

Link copied to clipboard
fun orderFailWithErrors(error: ULOrderError, orderConfirmationCallback: OrderConfirmationCallback)

Confirm that the current order could not be successfully paid by the virtual card. In this case you can specify why did the transaction failed.

Link copied to clipboard
fun orderSuccessWithId(confirmationId: String, orderConfirmationCallback: OrderConfirmationCallback)

Confirm that the current order has been successfully paid by the virtual card.

Link copied to clipboard

You can use this method to present the checkout view in full screen.

Link copied to clipboard

Delegate of the ULOrderManager, this object will be notified about the events and errors during the checkout.

Link copied to clipboard
fun setTripInfoForCheckout(tripInfo: <Error class: unknown class>, renewOrderId: Boolean): ULError?

Creates a new or update the previous order with the given ULPMTripInfo object. When the request is successful, this TripInfo object is stored in the currentOrder property. Renewing orderId deletes the previous order and reset the checkout flow. Once an order has been confirmed, calling this method will create a new order