Stellar PHP SDK API Documentation

SEP12TypesInfo

KYC type definitions for cross-border payment participants.

This class represents the accepted SEP-12 customer types for senders and receivers in cross-border payments. Each type maps to specific KYC field requirements that must be satisfied via SEP-12 customer registration before initiating a transaction.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v3.1.0/ecosystem/sep-0012.md
see
https://github.com/stellar/stellar-protocol/blob/v3.1.0/ecosystem/sep-0031.md#get-info
see
SEP31ReceiveAssetInfo

Table of Contents

Properties

$receiverTypes  : array<string, string>
$senderTypes  : array<string, string>

Methods

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

Properties

$receiverTypes

public array<string, string> $receiverTypes

An array containing the accepted receiver values for the type parameter in SEP-12 requests. Each key maps to a human-readable description.

$senderTypes

public array<string, string> $senderTypes

An array containing the accepted sender values for the type parameter in SEP-12 requests. Each key maps to a human-readable description.

Methods

__construct()

public __construct(array<string, string> $senderTypes, array<string, string> $receiverTypes) : mixed
Parameters
$senderTypes : array<string, string>

An array containing the accepted sender values for the type parameter in SEP-12 requests. Each key maps to a human-readable description.

$receiverTypes : array<string, string>

An array containing the accepted receiver values for the type parameter in SEP-12 requests. Each key maps to a human-readable description.

fromJson()

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

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

the data to construct the object from.

Return values
SEP12TypesInfo

the object containing the parsed data.


        
On this page

Search results