toPaymentFailure

fun toPaymentFailure(): OutgoingPaymentFailure

Use this function when no payment attempts have been made (e.g. when a precondition failed).