SEP31TransactionInfoNeededException
extends Exception
in package
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):
- Extract the fields array from this exception
- Retry POST /transactions with the required fields populated
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$error
public
string
$error
= 'transaction_info_needed'
transaction_info_needed
$fields
public
array<string|int, mixed>|null
$fields
= null
A key-value pair of missing fields in the same format as fields described in GET /info
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