简体   繁体   English

确认后,PayPal的使用PayPal付款的沙盒将挂起

[英]PayPal's Sandbox for Pay With PayPal hangs on confirmation

I'm trying to integrate PayPal into my website using their PHP API. 我正在尝试使用他们的PHP API将PayPal集成到我的网站中。 I've gone through the setup of creating a sandbox-merchant and sandbox-user account and I've put all the code necessary into the relevant pages and included my user/pass/key etc. in the functions page. 我已经完成了创建沙盒商户和沙盒用户帐户的设置,并将所有必要的代码放入相关页面,并将我的用户/密码/密钥等包含在功能页面中。

When I test however, I get as far as seeing the correct price, logging in, pressing "confirm payment" and then the little popup closes and I'm left at a "loading" page (URL https://www.sandbox.paypal.com/webapps/checkout/webflow/sparta/expresscheckoutvalidatedataflow?execution=e1s2 ) which never goes anywhere. 但是,当我进行测试时,我看到的是正确的价格,登录后,按“确认付款”,然后弹出的小窗口关闭,我留在“正在加载”页面(URL https://www.sandbox。 paypal.com/webapps/checkout/webflow/sparta/expresscheckoutvalidatedataflow?execution=e1s2 )永远不会消失。 Logging into my PayPal Sandbox account shows that the transaction was not successful. 登录到我的PayPal Sandbox帐户显示交易未成功。

Any ideas what's happening? 有什么想法吗?

SOLVED 解决了

Turns out my server was disabling scripts in a coincidentally named directory with open_basedir (the bane of my existence on Plesk servers). 原来我的服务器正在使用open_basedir(我在Plesk服务器上生存的祸根)的同名目录中禁用脚本。

PHP's open_basedir was disabling php confirmation script. PHP的open_basedir禁用了php确认脚本。 Coincidentally named directory. 恰好命名目录。

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

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