View Single Post
  #6  
Old 11-08-2017, 02:52 AM
 
Shri@2c2p Shri@2c2p is offline
 

Newbie
  
Join Date: Oct 2017
Posts: 4
 

Default Payment Callback is not working.

Hello,

I have developed one payment method and need to use front URL and backed URL to update the order status based on payment gateway response.

Front URL is working properly and also user is redirect based on payment gateway response status. Below is code for front method.
Quote:
public function processReturn(\XLite\Model\Payment\Transaction $transaction)
{
parent::processReturn($transaction);
// here is code for update the order status.
}


But I want to used backed method to update the order status but it is not working properly. Caused behind this is callBack.php is empty under the run folder / compile. Like below is empty code for Callback.php
Quote:
<?php
namespace XLite\Controller\Customer;
/**
* Payment method callback
*/
class Callback extends \XLite\Module\CDev\XPaymentsConnector\Controller\C ustomer\Callback {}

When I copy past the actual callBack.php content under the run... folder then it is working good.

Please suggest how I can resolved this one or it is X-cart issue?.

Because Paypal callBack also not working.
__________________
X-cart-5
Reply With Quote