pub struct CustomIncomingPaymentOptions {
pub method: String,
pub description: Option<String>,
pub amount: Option<Amount<CurrencyUnit>>,
pub unix_expiry: Option<u64>,
pub extra_json: Option<String>,
pub quote_id: QuoteId,
pub pubkey: Option<PublicKey>,
}Expand description
Options for creating a custom incoming payment request
Fields§
§method: StringPayment method name (e.g., “paypal”, “venmo”)
description: Option<String>Optional description for the payment request
amount: Option<Amount<CurrencyUnit>>Optional amount for the payment request
unix_expiry: Option<u64>Optional expiry time as Unix timestamp in seconds
extra_json: Option<String>Extra payment-method-specific fields as JSON string
These fields are passed through to the payment processor for method-specific validation (e.g., ehash share).
quote_id: QuoteIdThe mint’s quote id for this mint quote. Generated before
create_incoming_payment_request is called, so backends whose rail is
keyed by the quote the wallet displays can register it up front and
use it as their stable correlation key — mirroring
OnchainIncomingPaymentOptions::quote_id and the melt-side
CustomOutgoingPaymentOptions::quote_id.
pubkey: Option<PublicKey>NUT-20 locking pubkey of the quote, when the wallet supplied one.
Lets backends enforce a locked-quotes-only policy at quote creation for rails where the NUT-20 lock is the safety mechanism (the mint itself only verifies signatures at mint time and does not require a pubkey for custom methods).
Trait Implementations§
Source§impl Clone for CustomIncomingPaymentOptions
impl Clone for CustomIncomingPaymentOptions
Source§fn clone(&self) -> CustomIncomingPaymentOptions
fn clone(&self) -> CustomIncomingPaymentOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more