Stellar PHP SDK API Documentation

TransactionRefundPayment

Represents a single refund payment made to the user.

Contains details about an individual refund payment including the payment ID, type, amount, and associated fee.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v4.3.0/ecosystem/sep-0006.md

SEP-06 Specification

see
TransactionRefunds

Table of Contents

Properties

$amount  : string
$fee  : string
$id  : string
$idType  : string

Methods

__construct()  : mixed
fromJson()  : TransactionRefundPayment
Constructs a new instance of TransactionRefundPayment by using the given data.

Properties

Methods

__construct()

public __construct(string $id, string $idType, string $amount, string $fee) : mixed
Parameters
$id : string

The payment ID that can be used to identify the refund payment. This is either a Stellar transaction hash or an off-chain payment identifier, such as a reference number provided to the user when the refund was initiated. This id is not guaranteed to be unique.

$idType : string

stellar or external.

$amount : string

The amount sent back to the user for the payment identified by id, in units of amount_in_asset.

$fee : string

The amount charged as a fee for processing the refund, in units of amount_in_asset.


        
On this page

Search results