Stellar PHP SDK API Documentation

SEP31TransactionInfoNeededException extends Exception

Exception thrown when additional transaction information is required.

since SEP-31 v2.5.0, use SEP-12 PUT /customer instead

This exception is raised during POST /transactions when the Sending Anchor has not provided all required transaction fields. The fields property contains the list of missing or invalid fields that need to be supplied. Returns HTTP 400 Bad Request.

DEPRECATED: This approach is deprecated in favor of using SEP-12 PUT /customer to provide customer information. New implementations should use SEP-12 exclusively.

Resolution workflow (legacy):

  1. Extract the fields array from this exception
  2. Retry POST /transactions with the required fields populated
Tags
see
https://github.com/stellar/stellar-protocol/blob/v3.1.0/ecosystem/sep-0031.md#post-transactions
see
CrossBorderPaymentsService::postTransactions()

Table of Contents

Properties

$error  : string
$fields  : array<string|int, mixed>|null

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct([array<string|int, mixed>|null $fields = null ]) : mixed
Parameters
$fields : array<string|int, mixed>|null = null

A key-value pair of missing fields in the same format as fields described in GET /info


        
On this page

Search results