PHP付款中的Paypal API Express Checkout付款错误代码13113 [英] Paypal API Express Checkout in PHP Payment error code 13113

查看:343
本文介绍了PHP付款中的Paypal API Express Checkout付款错误代码13113的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经使用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); 
}

在Google上关于此错误的信息不多,甚至在API错误代码中也没有.以前有人来过吗?

There is not much on google about this error, not even in the API error codes. Has anyone come accross this before?

推荐答案

错误代码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)阻止了买方的帐户将款项转给卖方,直到情况解决为止.
  • 买方被怀疑存在欺诈行为,因此冻结了他们的帐户.
  • 由于某些其他原因,买方的帐户只能向特定的卖方汇款
  • 由于某些特定原因,买家的帐户被完全冻结

不幸的是,没有人彻底了解您的代码,没有太多人可以告诉您.我将检查我的代码,并确保设置了所有适当的标志和什么".如果您等了几个小时仍然遇到错误(尤其是在多个/新帐户上),那么您将需要与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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆