Skip to content

Commit 6c38b9e

Browse files
f expand docs
Co-authored-by: dunxen <[email protected]>
1 parent bc9ccfc commit 6c38b9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning-invoice/src/payment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ fn pay_invoice_using_amount<P: Deref>(
176176
/// The hash of the [`PaymentPreimage`] is used as the [`PaymentId`], which ensures idempotency
177177
/// as long as the payment is still pending. Once the payment completes or fails, you must
178178
/// ensure that a second payment with the same [`PaymentPreimage`] is never sent.
179+
///
180+
/// If you wish to use a different payment idempotency token, see
181+
/// [`pay_pubkey_with_id`].
179182
pub fn pay_pubkey<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref>(
180183
pubkey: PublicKey, payment_preimage: PaymentPreimage, amount_msats: u64,
181184
final_cltv_expiry_delta: u32, retry_strategy: Retry,

0 commit comments

Comments
 (0)