mikelovely Posted April 27, 2016 Share Posted April 27, 2016 I am creating a payment module for our payment gateway... So far I have 1) set up the back-end and 2) used the hookPayment() method to display a hidden form at part 5 of the checkout process (http://prestashop.dev/order). This will then redirect off to my gateway with all the required information. Good job. The next part is the part I am struggling with. I don't understand what the return URIs are for payment-confirmation - just to give the customer some information on the status of the order (and maybe also update the back-office?). For now, I have just a very simple method; public function hookPaymentReturn() { // if (!$this->active) { // return null; // } return $this->display(__FILE__, 'views/templates/front/confirmation.tpl'); } in my main module file. I just want to get to this on the browser... I'll start worrying about POST'ed values after this. But for now I just don't know the URI. What will it be?? Do I need to register the route somehow? Link to comment Share on other sites More sharing options...
mikelovely Posted April 27, 2016 Author Share Posted April 27, 2016 Hi, Examine the code of some payment modules like paypal for exemple or the order controllers classes. I think the back url should provide a variable that the order payment controller should handle. Are there any paypal test credentials I can use to easily see the end-to-end process? 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