What could be the problem that PayPal doesn't send me back to return URL after payment is completed? This stopped to work only on payments by credit card, everything is working with direct PP payment.
I use an iFrame and I get the completed payment message "Thank you for your payment", but the message is in iFrame and I want to refresh the whole page after the payment. So after the verification function:
$verified = $ipn->verifyIPN();
I am redirecting to another page using:
header();
But it's not working on credit card payments.
Error:
Invalid 'X-Frame-Options' header encountered when loading 'https://www.paypal.com/hostedpaymentnodeweb/payWithCC': 'ALLOW' is not a recognized directive. The header will be ignored.
Also I tried this at the end of the PHP script:
echo '<script type="text/javascript">window.top.location.href = "https://www.test.com";</script>';