Stellar PHP SDK API Documentation

SEP38SellDeliveryMethod
in package

Delivery method for selling an off-chain asset to an anchor via SEP-38.

This class describes a method by which a user can deliver an off-chain asset to the anchor, such as bank transfer, card payment, or cash deposit.

Tags
see
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#get-info
see
SEP38Asset

Table of Contents

Properties

$description  : string
$name  : string

Methods

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

Properties

Methods

__construct()

public __construct(string $name, string $description) : mixed
Parameters
$name : string

The identifier for the delivery method.

$description : string

Human-readable description of the delivery method.

fromJson()

Constructs a new instance of SEP38SellDeliveryMethod by using the given data.

public static fromJson(array<string|int, mixed> $json) : SEP38SellDeliveryMethod
Parameters
$json : array<string|int, mixed>

the data to construct the object from.

Return values
SEP38SellDeliveryMethod

the object containing the parsed data.


        
On this page

Search results