简体   繁体   English

PayPal不再重定向返回URL

[英]PayPal doesn't redirect to return URL anymore

What could be the problem that PayPal doesn't send me back to return URL after payment is completed? 付款完成后,PayPal没有将我发回给我返回URL可能是什么问题? This stopped to work only on payments by credit card, everything is working with direct PP payment. 这已停止,仅适用于通过信用卡付款,而所有功能都可以直接通过PP付款。

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. 我使用iFrame,并收到完整的付款消息“谢谢您的付款”,但是该消息位于iFrame中,我想在付款后刷新整个页面。 So after the verification function: 所以经过验证功能:

$verified = $ipn->verifyIPN();

I am redirecting to another page using: header(); 我正在使用重定向到另一个页面: 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: 我也在PHP脚本的末尾尝试了此操作:

echo '<script type="text/javascript">window.top.location.href = "https://www.test.com";</script>';

PayPal will redirect your buyer automatically to the URL that you have specify in your button code only when the payment made using PayPal account. 仅当使用PayPal帐户付款时,贝宝才会自动将您的买家重定向到您在按钮代码中指定的URL。

As mention from their site https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ2056&pmv=print&impressions=false&viewlocale=en_US , this feature available only for PayPal payment upon successful completion. 如从其网站https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ2056&pmv=print&impressions=false&viewlocale=zh_CN所述 ,此功能仅适用于成功完成的PayPal付款。

If you're using Website payment standard also known as PayPal payment standard, I suggest you to pass variable name 'cbt' to customize the text that appear on redirection link so that those buyers (who're using credit/debit card payment) aware of this link. 如果您使用的是网站付款标准(也称为PayPal付款标准),建议您传递变量名“ cbt”来自定义重定向链接上显示的文字,以便那些(使用信用卡/借记卡付款的)买家知道此链接。

You may refer to this link for list of custom variable that you can attach in your button code : https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/ 您可以参考此链接,获取可附加在按钮代码中的自定义变量列表: https : //developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM