Jump to content

Edit History

pg_dev

pg_dev

Hi all, I'm working on a external type payment module in prestashop 1.7. I followed prestashop payment example module in github and replicated same for external payment type. But after clicking submit button on checkout, the front tpl shows all the params set in tpl file. I need it to redirect to the API url / payment page. What should I do further to  achieve this ? I tried going through paypal module code. I'm getting more confused as there are several controller overriding files & tpl files and also I'm new to this platform. 

some more doubts: 
->Where should i write request params? will it be in front controller or front tpl file?
->Where should I write response received from payment gateway?
->Do I have to make separate controller file overriding front controller or no need for that?

Below are some code img for reference. Please Help!! 


Thanks

payment_return.tpl.png

validation.tpl.png

 

 

pg_dev

pg_dev

Hi all, I'm working on a external type payment module in prestashop 1.7. I followed prestashop payment example module in github and replicated same for external payment type. But after clicking submit button on checkout, the front tpl shows all the params set in tpl file. I need it to redirect to the API url / payment page. What should I do further to  achieve this ? I tried going through paypal module code. I'm getting more confused as there are several controller overriding files & tpl files and also I'm new to this platform. 

some more doubts: 
->Where should i write request params? will it be in front controller or front tpl file?
->Where should I write response received from payment gateway?
->Do I have to make separate controller file overriding front controller or no need for that?

Below are some code img for reference. Please Help!! 


Thanks

payment_return.tpl.png

validation.tpl.png

latpayredirect.php.png

Screenshot 2023-03-02 125758.png

×
×
  • Create New...