pub struct PayInvoiceRequest {
pub invoice: Invoice,
pub fallback_amount: Option<Amount>,
pub lud12_comment: Option<String>,
pub personal_note: Option<String>,
pub partner_pk: Option<UserPk>,
pub partner_prop_fee: Option<Ppm>,
pub partner_base_fee: Option<Amount>,
}Expand description
A request to pay a BOLT 11 invoice.
Fields§
§invoice: InvoiceThe invoice we want to pay. Retries with the same
invoice.payment_hash are idempotent and will return the existing
payment, even if it failed.
fallback_amount: Option<Amount>Specifies the amount we will pay if the invoice to be paid is amountless. This field must be set if the invoice is amountless.
lud12_comment: Option<String>A LUD-12 comment the caller already sent when requesting this invoice
over LNURL-pay. Stored with the payment as its message; nothing is
sent to the recipient.
If provided, it must be non-empty and no longer than 200 chars /
512 UTF-8 bytes.
personal_note: Option<String>An optional personal note for this payment. The receiver will not see this note. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
partner_pk: Option<UserPk>The partner’s user_pk, if the partner is setting the fee for this payment instead of using Lexe’s default fees.
This must be set in order for partner_prop_fee and partner_base_fee
to take effect.
The total fee (partner_base_fee + partner_prop_fee * amount) must be
at least 0.5% (5000 ppm) and less than 50% (500,000 ppm) of the payment
amount.
partner_prop_fee: Option<Ppm>The partner-chosen proportional fee to charge on this payment, paid on top of the routing fees.
partner_base_fee: Option<Amount>The partner-chosen base fee to charge on this payment, paid on top of the routing fees.