A payment is created automatically when a customer completes a checkout. Payments are confirmed on the Stellar ledger and carry a transaction hash.
The payment object
string
Unique identifier. Prefixed with pay_.
string
Always "payment".
string
The checkout this payment originated from.
string
The customer who made the payment.
string
If this payment is a subscription renewal, the subscription ID.
string
Amount and asset code, e.g. "50 XLM".
string
pending, confirmed, or failed.
string
The Stellar transaction hash.
object | null
Snapshot of the customer’s billing info at the time of payment. null if no customer was attached.
Show billing_details fields
string
Customer’s email address.
string
Customer’s full name.
object | null
The Stellar wallet used to make the payment. null if unavailable.
Show payment_method_details fields
string
Wallet identifier. Prefixed with cwl_.
string
The Stellar public key (G-address).
array
Refunds issued against this payment. Empty array if no refunds exist.
Show line item fields
string
Unique identifier for the refund. Prefixed with ref_.
string
Refunded amount and asset code, e.g. "10 XLM".
string
The reason provided when the refund was issued.
string
pending, confirmed, or failed.
object
Arbitrary key-value data.
string
ISO 8601 timestamp.
Retrieve a payment
GET /payment/{id}Fetches a single payment by ID. Before returning, the Stellar network is queried for any pending payments and their status is updated accordingly.