updateState

fun updateState(orderId: Int, state: String, callback: (Order?, SdkError?) -> Unit? = null)

Update the state for an order with the given orderId.

Example:

FlyBuyCore.getInstance(appAuthId).orders.updateState(orderId, "cancelled") { order, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}