SEP31PostTransactionsResponse
in package
Response from initiating a cross-border payment transaction via SEP-31.
This class represents the response received from a POST /transactions request, containing the transaction ID and Stellar payment details required to send the payment to the Receiving Anchor.
Tags
Table of Contents
Properties
- $id : string
- $stellarAccountId : string|null
- $stellarMemo : string|null
- $stellarMemoType : string|null
Methods
- __construct() : mixed
- fromJson() : SEP31PostTransactionsResponse
- Constructs a new instance of SEP31PostTransactionsResponse by using the given data.
Properties
$id
public
string
$id
The persistent identifier to check the status of this payment transaction.
$stellarAccountId
public
string|null
$stellarAccountId
= null
(optional) The Stellar account to send payment to.
$stellarMemo
public
string|null
$stellarMemo
= null
(optional) The memo to attach to the Stellar payment.
$stellarMemoType
public
string|null
$stellarMemoType
= null
(optional) The type of memo to attach to the Stellar payment (text, hash, or id).
Methods
__construct()
public
__construct(string $id[, string|null $stellarAccountId = null ][, string|null $stellarMemoType = null ][, string|null $stellarMemo = null ]) : mixed
Parameters
- $id : string
-
The persistent identifier to check the status of this payment transaction.
- $stellarAccountId : string|null = null
-
(optional) The Stellar account to send payment to.
- $stellarMemoType : string|null = null
-
(optional) The type of memo to attach to the Stellar payment (text, hash, or id).
- $stellarMemo : string|null = null
-
(optional) The memo to attach to the Stellar payment.
fromJson()
Constructs a new instance of SEP31PostTransactionsResponse by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP31PostTransactionsResponse
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP31PostTransactionsResponse —the object containing the parsed data.