View Single Post
  #1  
Old 08-24-2015, 03:47 AM
 
kambengkarbonat kambengkarbonat is offline
 

Newbie
  
Join Date: Aug 2015
Posts: 7
 

Default Calling callback method to change transaction status.

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.
__________________
Core version: 5.2.6
Reply With Quote