我们已经使用 Paypal 沙盒尝试并测试了我们的网站,它可以完全扣除金额.
We have tried and tested our site with Paypal sandbox and it works fully deducting the amount.
我们将 API 详细信息切换到 Paypal 和链接.我们已经尝试了几个 paypal 账户,看看它是否有效(所有账户都有足够的资金进行交易).
We switched the API details to Paypal and the links. We have tried with several paypal accounts to see if it works (all of them have enough funds for the transaction).
我们通过 returnUrl 页面上的 API 收到此信息 -API 调用失败
We recieve this back through the API on our returnUrl page - The API Call Failed
Array ( [TIMESTAMP] => 2012%2d07%2d15T19%3a31%3a43Z [CORRELATIONID] => 927a89205e54a
[ACK] => Failure [VERSION] => 65%2e1 [BUILD] => 3300093 [L_ERRORCODE0] => 13113
[L_SHORTMESSAGE0] => Buyer%20Cannot%20Pay%2e [L_LONGMESSAGE0] =>
The%20Buyer%20cannot%20pay%20with%20PayPal%20for%20this%20Transaction%2e [L_SEVERITYCODE0] => Error )
Php 进行最终的 API 调用 -
Php to make the final API call -
$APIUSERNAME="*****";
$APIPASSWORD="***";
$APISIGNATURE="*****";
$ENDPOINT = "https://api-3t.paypal.com/nvp";
//$ENDPOINT = "https://api-3t.sandbox.paypal.com/nvp";
$VERSION = "64";
//Build the Credential String:
$cred_str = "USER=" . $APIUSERNAME . "&PWD=" . $APIPASSWORD . "&SIGNATURE=" .
$APISIGNATURE . "&VERSION=" . $VERSION;
//Build NVP String for GetExpressCheckoutDetails
$nvp_str = "&METHOD=GetExpressCheckoutDetails&TOKEN=" . urldecode($token);
//Lets combine both strings then make the API call
$req_str = $cred_str . $nvp_str; $response = PPHttpPost($ENDPOINT, $req_str);
以上数组来自于我收到 paypal 的最终确认.
The above array comes from when i recieve my final acknowledgment from paypal.
//check Response
if($doresponse['ACK'] == "Success" || $doresponse['ACK'] == "SuccessWithWarning") {
echo "completed"; //just put to test
include "finishtransaction.php"; //cancels my cart sessions
} else{
echo "The API Call Failed"; print_r($doresponse);
}
谷歌上关于这个错误的信息并不多,甚至在 API 错误代码中也没有.有没有人遇到过这种情况?
There is not much on google about this error, not even in the API error codes. Has anyone come accross this before?
PayPal API 错误代码 诚然不是很有帮助.
错误代码 13113,或买方无法使用 PayPal 支付此交易"表示 PayPal 已采取安全措施拒绝处理交易.这可能是由于以下原因之一(还有更多,但这里有几个):
Error code 13113, or "The Buyer cannot pay with PayPal for this Transaction" means that PayPal has taken a security measure by refusing to process the transaction. This can happen for one of the following reasons (there are more, but here are a few):
不幸的是,如果不彻底查看您的代码,任何人都无法告诉您太多信息.我会检查我的代码并确保所有适当的标志和什么都没有设置.如果您等待几个小时后仍然收到错误消息(尤其是在多个/新帐户上),则您需要联系 PayPal.
Unfortunately, there isn't much anyone can tell you without thoroughly looking through your code. I would check my code and make sure all appropriate flags and what-not are set. If you wait a few hours and are still getting the error (especially on multiple/new accounts), then you will need to contact PayPal.
我知道这很糟糕,但只有 PayPal 才能告诉您交易失败的确切原因.
I know it sucks, but only PayPal will be able to tell you why exactly the transaction is failing.
这篇关于PHP 付款中的 Paypal API Express Checkout 错误代码 13113的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!