Call for check specific transactions and what status they have on the processor level.
Get transaction status for processor.
| Parameter | Type | Required | Description |
| gateway_id | node | Y | Unique gateway account id to be used for tokenization. |
| charge_id | node | Y | Unique charge_id generated by GoodFunds Gateway. |
N/A
PHP Sample Request: (json format)
$gateway_id = '[Gateway ID]';
$charge_id = '[Charge ID]';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://demo.goodfundsgateway.com/api/transaction.json/".$gateway_id."/".$charge_id,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Cache-Control: no-cache",
"Content-Type: application/json",
"SVS-API-ID: [SVS-API-ID]",
"SVS-API-KEY: [SVS-API-KEY]"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Response data: (json format)
{
"status": "success",
"successMessage": {
"response_code": 707,
"message": {
"transaction": {
"success": true,
"charge_id": "[Charge ID]",
"trans_id": "[Trans ID]",
"trans_status": "Returned",
"return_code": "R05"
}
}
}
}