Jump to content

Order confirmation return display page


Recommended Posts

I am developing a payment module and I am completely stuck when it comes to configuring the return_url. I am so lost here.

 

This will be my return URL (although happy to tweak it if I am wrong about this)

prestashop.dev/index.php?
action=completed&
controller=callback&
fc=module&
hmac=f2f83a947474ce8&
merchant_order_id=14&
module=chippin
From this, I have a class;

class ChippinCallbackModuleFrontController extends ModuleFrontController
{
    public $ssl = true;

    public function __construct()
    {
        parent::__construct();

        // load chippin classes
        require_once(dirname(__FILE__).'/../../classes/loader.php');
    }

    public function postProcess()
    {
         if ($payment_response->getAction() === "completed") {
        
         
         // $order_id = Order::getOrderByCartId((int) ($payment_response->getMerchantOrderId()));
         // $order = new Order($order_id);
         // $order->setCurrentState(Configuration::get('CP_OS_PAYMENT_COMPLETED'));
         
           
         $this->setTemplate('confirmation.tpl');}
      }
 

 

What do I put in `postProcess()` (aside from the validation code which I already have), to be able to display the order confirmation information? At the moment, `confirmation.tpl[/size]` is not being called. I don't understand why

Edited by mikelovely (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...