Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.19 KB

async-processing.md

File metadata and controls

59 lines (40 loc) · 1.19 KB

Async Processing

$asyncProcessingController = $client->getAsyncProcessingController();

Class Name

AsyncProcessingController

Status Check

Retrieve the current status for a particular code.

function statusCheck(string $statusCode): ResponseAsyncStatus

Parameters

Parameter Type Tags Description
statusCode string Template, Required A UUID v4 that's unique for the Async Request

Response Type

ResponseAsyncStatus

Example Usage

$statusCode = '406c66c3-21cb-47fb-80fc-843bc42507fb';

$result = $asyncProcessingController->statusCheck($statusCode);

Example Response (as JSON)

{
  "type": "AsyncStatus",
  "data": {
    "code": "406c66c3-21cb-47fb-80fc-843bc42507fb",
    "type": "Transaction",
    "id": "11e95f8ec39de8fbdb0a4f1a",
    "progress": 100,
    "error": null,
    "ttl": 7956886942
  }
}

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized Response401tokenException