Class PaymentResponseEnvelope
The settlement result returned by the facilitator in the PAYMENT-RESPONSE header (t54 exact scheme).
Indicates whether the payment was successfully validated on-ledger.
Inheritance
object
PaymentResponseEnvelope
Namespace: Xrpl.X402.Wire
Assembly: Xrpl.X402.dll
Syntax
public sealed class PaymentResponseEnvelope
Properties
| Edit this page View SourceErrorReason
Short machine-readable error code on failure (e.g. "settlement_failed"); null on success.
Declaration
[JsonPropertyName("errorReason")]
public string? ErrorReason { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Network
CAIP-2 network identifier on which the transaction was validated; null on failure.
Declaration
[JsonPropertyName("network")]
public string? Network { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Payer
Classic XRPL address of the payer account on success; null on failure.
Declaration
[JsonPropertyName("payer")]
public string? Payer { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Success
true if the payment was validated on the ledger; false on any failure.
Declaration
[JsonPropertyName("success")]
public bool Success { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Transaction
Validated transaction hash (tx_id) on success; null on failure.
Declaration
[JsonPropertyName("transaction")]
public string? Transaction { get; set; }
Property Value
| Type | Description |
|---|---|
| string |