add And Receive Payment
abstract suspend fun addAndReceivePayment(preimage: ByteVector32, origin: IncomingPayment.Origin, receivedWith: Set<IncomingPayment.ReceivedWith>, createdAt: Long = currentTimestampMillis(), receivedAt: Long = currentTimestampMillis())
Content copied to clipboard
Simultaneously add and receive a payment. Use this method when receiving a spontaneous payment, for example a swap-in payment.