Module payment

Source
Expand description

Payment data types. Lexe SDK payment types.

Structs§

ClientPaymentId
A unique, client-generated id for payment types (onchain send, ln spontaneous send) that need an extra id for idempotency.
LnClaimId
Newtype for LDK’s lightning::ln::channelmanager::PaymentId but used specifically for inbound lightning payment idempotency.
Payment
Information about a payment.
PaymentCreatedIndex
A unique, ordered payment identifier: (created_at, payment_id).
PaymentHash
The payment hash of a Lightning payment. Serialized as a 64-character hex string.
PaymentSecret
The payment secret of a Lightning invoice, used to authenticate the payer. Serialized as a 64-character hex string.
PaymentUpdatedIndex
A unique, ordered payment identifier: (updated_at, payment_id).

Enums§

Order
Sort order for listing results.
PaymentDirection
The direction of a payment: "inbound", "outbound", or "info".
PaymentFilter
Filter for listing payments.
PaymentId
A globally unique identifier for any payment (Lightning or on-chain). Serialized as "<prefix>_<hex>", e.g. "ln_3ddc..." or "os_0a19...".
PaymentKind
A fine-grained category for a payment. Useful for filtering payment history and analytics (e.g. regular Lightning payments vs. waived channel fees).
PaymentRail
The protocol used to fulfill a payment: "onchain", "invoice", "offer", "spontaneous", etc.
PaymentStatus
The status of a payment: "pending", "completed", or "failed".