| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-cart-5 Order not update based on payment gateway response | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
X-cart-5 Order not update based on payment gateway response
Hello ,
I am working creating custom payment module using X-cart 5 where I can purchase items using various payment methods. When customer places the order, an entry is made to Order table but that that order is not being displayed on the order history list. When I manully update following column values for that record then it will gets displayed. Column Names : shipping_status_id , is_order. I also configured the Paypal stranded payment method but it also has same issue. Any thoughts on this? I have below code to handle the payment gateway response and update the order status Quote:
Thanks, Shri
__________________
X-cart-5 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: X-cart-5 Order not update based on payment gateway response
Hi Shri,
Did you try to run a test payment module described here: http://devs.x-cart.com/en/changing_store_logic/creating_a_payment_method/ Does it have the same problem or does it work fine for you? Aside from that, I see you do not have call of parent::processReturn() method in your processReturn() implementation. It may be the reason why it does not work properly. Tony Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: X-cart-5 Order not update based on payment gateway response
Thanks for your reply,
I have called the Quote:
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 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: X-cart-5 Order not update based on payment gateway response
Quote:
If I get it right, you should mark orders with a new db field / flag and switch the flag when the order status changes Check \XLite\Model\Order::getStatusHandlers() method.
__________________
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 |
|||||||||
#5
|
|||||||
|
|||||||
Re: X-cart-5 Order not update based on payment gateway response
Thanks for you response,
I have make successful payment and set the default order status as "Awaiting Payment" and after the I also change order payment status as "Paid" but it is not changing payment status. Here is my code stuff. Quote:
__________________
X-cart-5 |
|||||||
#6
|
|||||||
|
|||||||
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:
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:
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 |
|||||||
#7
|
|||||||
|
|||||||
Re: Payment Callback is not working.
When I Comment this line into below code snippet then it is working fine.
Quote:
Please let me know is there any solution for this issue.
__________________
X-cart-5 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: X-cart-5 Order not update based on payment gateway response
Should it be "$order->transaction->..." instead of "$this->transaction->..."?
Also, I'm not sure, but you may have to manually adjust the order payment status as well.
__________________
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 |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: X-cart-5 Order not update based on payment gateway response
Also, XPaymentsConnector is a module that integrates X-Cart with out X-Payments solution.
It is not a payment method, but a wrapper that includes multiple payment methods. I believe you don't have to change anything within that class unless you want your payment method to be supported by X-Payment somehow (I'm not sure how - all the integration code is inside X-Payments, the connector module just redirect payment requests from X-Cart to there).
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|