Hi,
I'm manage to call a callback method using this URL, <MYSITE>/callback.php
This is the content of the callback.php
Code:
require_once 'top.inc.php';
$result = \XLite\Core\Request::getInstance()->status;
if($result=='00')
{
$status='S';
}
elseif ($result=='11')
{
$status='F';
}
elseif ($result=='22')
{
$status='W';
}
Within this method, I have $_POST['order_id'], so how do i query the transaction that having this ID and update it status?
I use this method
Code:
$this->transaction->setStatus($status);
, but seems it only works on non-callback.
Thanks.