onFailure
inline fun <T : Parcelable> ProcessOutActivityResult<T>.onFailure(action: (failure: ProcessOutActivityResult.Failure) -> Unit): ProcessOutActivityResult<T>
Performs the given action on the encapsulated failure if this instance represents Failure. Returns the original ProcessOutActivityResult unchanged.
inline fun <T : Any> ProcessOutResult<T>.onFailure(action: (failure: ProcessOutResult.Failure) -> Unit): ProcessOutResult<T>
Performs the given action on the encapsulated failure if this instance represents Failure. Returns the original ProcessOutResult unchanged.