@@ -82,8 +82,8 @@ use crate::ln::our_peer_storage::EncryptedOurPeerStorage;
82
82
#[cfg(test)]
83
83
use crate::ln::outbound_payment;
84
84
use crate::ln::outbound_payment::{
85
- Bolt11PaymentError, OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest,
86
- SendAlongPathArgs, StaleExpiration,
85
+ OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest, SendAlongPathArgs ,
86
+ StaleExpiration,
87
87
};
88
88
use crate::ln::types::ChannelId;
89
89
use crate::offers::flow::OffersMessageFlow;
@@ -187,7 +187,8 @@ use core::{cmp, mem};
187
187
#[cfg(any(test, feature = "_externalize_tests"))]
188
188
pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
189
189
pub use crate::ln::outbound_payment::{
190
- Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry, RetryableSendFailure,
190
+ Bolt11PaymentError, Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry,
191
+ RetryableSendFailure,
191
192
};
192
193
use crate::ln::script::ShutdownScript;
193
194
@@ -5142,10 +5143,11 @@ where
5142
5143
///
5143
5144
/// # Handling Invoice Amounts
5144
5145
/// Some invoices include a specific amount, while others require you to specify one.
5145
- /// - If the invoice **includes** an amount, user must not provide `amount_msats`.
5146
+ /// - If the invoice **includes** an amount, user may provide an amount greater or equal to it
5147
+ /// to allow for overpayments.
5146
5148
/// - If the invoice **doesn't include** an amount, you'll need to specify `amount_msats`.
5147
5149
///
5148
- /// If these conditions aren’t met, the function will return `Bolt11PaymentError::InvalidAmount`.
5150
+ /// If these conditions aren’t met, the function will return [ `Bolt11PaymentError::InvalidAmount`] .
5149
5151
///
5150
5152
/// # Custom Routing Parameters
5151
5153
/// Users can customize routing parameters via [`RouteParametersConfig`].
0 commit comments