View Single Post
  #3  
Old 11-02-2017, 07:48 PM
 
Shri@2c2p Shri@2c2p is offline
 

Newbie
  
Join Date: Oct 2017
Posts: 4
 

Default Re: X-cart-5 Order not update based on payment gateway response

Thanks for your reply,

I have called the
Quote:
parent::processReturn($transaction); method.


But this problem is I resolved by using the below code snippet.

public function processReturn(\XLite\Model\Payment\Transaction $transaction)
{
parent::processReturn($transaction);

$order = $this->getOrder();

$order->processSucceed();
}

Above code is updated the order status successfully based on payment response.

Thanks,
Shri
__________________
X-cart-5
Reply With Quote