Jump to content
thirty bees forum
  • 0

Paypal does not return order confirmation page after successful payment


Question

Posted

My client reported this problem to me, after debugging, i saw: modules\paypal\controllers\front\expresscheckout.php ln: 473 Tools::redirectLink($this->context->link->getPageLink('order-confirmation', true, '&id_cart='.$cart->id.'&id_module='.$this->module->id.'&key='.$customer->secure_key)); And the actual method is: public function getPageLink($controller, $ssl = null, $idLang = null, $request = null, $requestUrlEncode = false, $idShop = null, $relativeProtocol = false)

So the third parameter is wrong. If i fix it, and put null as third parameter, it works.

1 answer to this question

Recommended Posts

  • 0
Posted

Also the order confirmation page is kind of empty, stripe for example hooks into {$HOOKORDERCONFIRMATION} and adds some text, in your case there is no usage of this hook. However i do see that you have orderconfirmation controller there and the template file for it, was the intent to use:

Tools::redirectLink($this->context->link->getModuleLink('paypal', 'orderconfirmation', ['id_cart' => $cart->id, 'id_module' => $this->module->id, 'key' => $customer->secure_key], true));

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...