verifyRedirectResponse Method
Overview
The verifyRedirectResponse method validates payment responses from redirects.
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
merchantOrderId | string | Yes | Your order reference |
requestDetails | array | Yes | Redirect details |
Response Fields
| Field | Type | Description |
|---|---|---|
sourceVerified | bool | Response authentic |
status | PaymentStatus | Payment status |
Example
$request = [
'merchantOrderId' => 'order_001',
'requestDetails' => [
'headers' => [...],
'queryParams' => ['payment_intent' => 'pi_xxx']
]
];
$response = $paymentClient->verifyRedirectResponse($request);