JoelWebsites Posted November 29, 2014 Share Posted November 29, 2014 (edited) All my payment history showing payment failed How do I write code to show payment accepted or payment pending or payment failed? Please see the screenshort to get an idea ,I have attached the code as well for response.Please help...thanks response.php Edited November 29, 2014 by joeljfernandes (see edit history) Link to comment Share on other sites More sharing options...
JoelWebsites Posted November 29, 2014 Author Share Posted November 29, 2014 I used the number 16 as the status $tpsl->validateOrder(intval($cart->id),16, $response['Amount'], $tpsl->displayName, $history_message, $extras, '', false, $cart->secure_key); but I still see status as payment error Can someone please tell me why is showing status as payment error Link to comment Share on other sites More sharing options...
bellini13 Posted November 29, 2014 Share Posted November 29, 2014 what is 16? Link to comment Share on other sites More sharing options...
JoelWebsites Posted November 30, 2014 Author Share Posted November 30, 2014 16,2,8 these number id values shuld shw payment accepted or receivd status,no 10 id is fr bank wire payment....that is wrkng fine..but 16,2,8 shw status as payment error Link to comment Share on other sites More sharing options...
JoelWebsites Posted November 30, 2014 Author Share Posted November 30, 2014 Yu can go to admin panel>>order statuses.. Yul see these ids Link to comment Share on other sites More sharing options...
bellini13 Posted November 30, 2014 Share Posted November 30, 2014 I don't have a 16, so I don't know what it is, or what you have defined it to be Link to comment Share on other sites More sharing options...
JoelWebsites Posted December 1, 2014 Author Share Posted December 1, 2014 I have received payment on 16 Link to comment Share on other sites More sharing options...
bellini13 Posted December 1, 2014 Share Posted December 1, 2014 so you have added custom order states. out of the box, Prestashop only includes states 1 - 12. So I don't know how you have configured these custom order states, or what would be switching the state from 16 (payment received) back to 8 (payment error). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now