View Single Post
  #4  
Old 09-01-2015, 11:18 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Calling callback method to change transaction status.

Quote:
Originally Posted by kambengkarbonat
I'm manage to call a callback method using this URL, <MYSITE>/callback.php

The way you do it looks a bit hacky. Why don't you add a custom controller class?


Quote:
Originally Posted by kambengkarbonat
I use this method
Code:
$this->transaction->setStatus($status);
, but seems it only works on non-callback.

What is $this->transaction? Where did this variable go from?

Quote:
Originally Posted by kambengkarbonat
How do i query the database and update the fields

X-Cart 5 uses Doctrine ORM 2 library to work with the database.

Did you check the documentation for developers? It has a number of tutorials and examples on working with database entities: http://kb.x-cart.com/
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote