SEP08PostTransactionRevised
extends SEP08PostTransactionResponse
in package
Response indicating the transaction was modified for compliance and signed.
This response means the original transaction was not compliant but has been revised by the approval server to meet regulatory requirements. The revised transaction has been signed by the issuer.
The wallet MUST inspect the revised transaction carefully to understand what changes were made before submitting it to the Stellar network. Common revisions include:
- Adding operations (e.g., fee payments, compliance operations)
- Modifying amounts to comply with velocity limits
- Changing destination accounts
Security Warning: Always verify that revised transactions do not contain unexpected or malicious modifications before submitting to 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
$message
$tx
public
string
$tx
Methods
__construct()
Constructor.
public
__construct(string $tx, string $message) : mixed
Parameters
- $tx : string
-
Transaction envelope XDR (base64 encoded). This transaction is a revised compliant version of the original request transaction, signed by the issuer.
- $message : string
-
A human-readable string explaining the modifications made to the transaction to make it compliant.
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