我还没有能够在我的项目上工作大约1个月。现在我有一些时间来回到它。我注意到,贝宝做了一些改变。新的贝宝系统已停止使用我的代码
在我暂时从这个项目中休息之前,我能够使用paypal API发送付款。但是现在,当我使用相同的代码,我得到以下信息:
Preapproval API call failed. Detailed Error Message: The receiver is based in a country that isn't enabled to receive paymentsError Code: 580022Error Severity: ErrorError Domain: PLATFORMError Category: Application
我在英国我和我的paypalplaform.php文件没有发生任何变化。我唯一改变的是api凭证凭借已获得的新凭据:
$PROXY_HOST = '127.0.0.1';
$PROXY_PORT = '808';
$Env = "sandbox";
$API_UserName = "new-facilitator_api-email-goes-here";
$API_Password = "password-goes-here";
$API_Signature = "sig-goes-here";
// AppID is preset for sandbox use
// If your application goes live, you will be assigned a value for the live environment by PayPal as part of the live onboarding process
$API_AppID = "APP-80W284485P519543T";
$API_Endpoint = "";
if ($Env == "sandbox")
{
$API_Endpoint = "https://svcs.sandbox.paypal.com/AdaptivePayments";
}
else
{
$API_Endpoint = "https://svcs.paypal.com/AdaptivePayments";
}
为什么这不再起作用?我在apache error.log文件中没有收到任何错误。
觉得很烦人,我要2整天等待设置赏金吸引更多注意的问题...... – oshirowanen 2013-03-21 19:50:08
在旧的paypal沙箱系统,有一个通用的api用户名,密码,沙箱帐户的签名,这是我在paypalplatform.php文件中使用的。我似乎无法在新的沙盒PayPal系统中找到一般的api用户名,密码,签名,这就是为什么我尝试使用主持人paypal沙箱测试帐户的原因。 – oshirowanen 2013-03-21 19:56:53