Code: Select all
if ($this->config->get('pp_express_test') == 1) {
header('Location: https://www.sandbox.paypal.com/cgi‑bin/webscr?cmd=_express-checkout&token=' . $result['TOKEN'].'&useraction=commit');
} else {
header('Location: https://www.paypal.com/cgi‑bin/webscr?cmd=_express-checkout&token=' . $result['TOKEN'].'&useraction=commit');
}
Code: Select all
if ($this->config->get('pp_express_test') == 1) {
header('Location: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=' . $result['TOKEN'].'&useraction=commit');
} else {
header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=' . $result['TOKEN'].'&useraction=commit');
}
In Internet Explorer 11, when a user clicks on the Pay with credit or Visa Debit card button on the PayPal page, PayPal displays:
502 Bad Gateway
--------------------------------------------------------------------------------
nginx/1.6.0
The issue does not show up for Google Chrome nor for Firefox.
Changing the code as mentioned above resolves the issue for Internet Explorer.