SEP08PostTransactionSuccess
extends SEP08PostTransactionResponse
in package
Response indicating the transaction was approved and signed without revision.
This response means the transaction was found compliant with the issuer's regulatory requirements and has been signed by the issuer without modifications. The wallet should now submit the signed transaction to the Stellar network.
The returned transaction envelope contains both the original signatures from the user and additional signatures from the issuer, providing the necessary authorization to complete the transaction on the network.
HTTP Status Code: 200
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- fromJson() : SEP08PostTransactionResponse
- Factory method to construct a transaction response object from JSON data.
Properties
$message
public
string|null
$message
= null
$tx
public
string
$tx
Methods
__construct()
Constructor.
public
__construct(string $tx[, string|null $message = null ]) : mixed
Parameters
- $tx : string
-
Transaction envelope XDR (base64 encoded). This transaction will have both the original signature(s) from the request as well as one or multiple additional signatures from the issuer.
- $message : string|null = null
-
A human-readable string containing information to pass on to the user.
fromJson()
Factory method to construct a transaction response object from JSON data.
public
static fromJson(array<string|int, mixed> $json) : SEP08PostTransactionResponse
Parses the JSON response from an approval server and instantiates the appropriate concrete response class based on the 'status' field value.
Status Mapping:
- "success" -> SEP08PostTransactionSuccess
- "revised" -> SEP08PostTransactionRevised
- "pending" -> SEP08PostTransactionPending
- "action_required" -> SEP08PostTransactionActionRequired
- "rejected" -> SEP08PostTransactionRejected
Parameters
- $json : array<string|int, mixed>
-
Decoded JSON response from approval server
Tags
Return values
SEP08PostTransactionResponse —Concrete subclass instance based on status field