我正在使用 PHP 制作一个众筹网站,我正在使用预批准和链式支付。
我能够以编程方式创建和取消预先批准的付款,但当我尝试支付其中一项时,出现错误:
580022 - 收款人位于无法接收付款的国家/地区
我有两个接收者,主要接收者获得 95% 的金额,并且是被质押项目的所有者。 剩下的 5% 作为佣金归我所有。
两个收款人都有英国的 PayPal 账户,我在沙盒中工作。
知道哪里出了问题吗?我希望这个功能在英国可用,否则我白跑这么远!
我正在使用此 API 进行付款:https://github.com/angelleye/paypal/
这是发送到 paypal 的生成的 XML:
<?xml version="1.0" encoding="utf-8"?>
<PayRequest xmlns="http://svcs.paypal.com/types/ap">
<requestEnvelope xmlns="">
<detailLevel>ReturnAll</detailLevel>
<errorLanguage>en_US</errorLanguage>
</requestEnvelope>
<actionType xmlns="">PAY_PRIMARY</actionType>
<cancelUrl xmlns="">http://89.238.152.7/funding/error/cancelled</cancelUrl>
<clientDetails xmlns="">
<applicationId xmlns="">APP-80W284485P519543T</applicationId>
<customerId xmlns="">1</customerId>
<ipAddress xmlns="">92.27.172.254</ipAddress>
<partnerName xmlns="">The Funding Forum</partnerName>
</clientDetails>
<currencyCode xmlns="">GBP</currencyCode>
<feesPayer xmlns="">EACHRECEIVER</feesPayer>
<fundingConstraint xmlns="">
<allowedFundingType xmlns="">
<fundingTypeInfo xmlns="">
<fundingType xmlns="">ECHECK</fundingType>
</fundingTypeInfo>
<fundingTypeInfo xmlns="">
<fundingType xmlns="">BALANCE</fundingType>
</fundingTypeInfo>
<fundingTypeInfo xmlns="">
<fundingType xmlns="">CREDITCARD</fundingType>
</fundingTypeInfo>
</allowedFundingType>
</fundingConstraint>
<ipnNotificationUrl xmlns="">http://89.238.152.7/paypal/ipn.php</ipnNotificationUrl>
<preapprovalKey xmlns="">PA-8EE05998ST379664R</preapprovalKey>
<receiverList xmlns="">
<receiver xmlns="">
<amount xmlns="">0.5</amount>
<email xmlns="">james_1351605562_per@design365.co.uk</email>
<paymentType xmlns="">GOODS</paymentType>
<primary xmlns="">true</primary>
</receiver>
<receiver xmlns="">
<amount xmlns="">0.02</amount>
<email xmlns="">james_1351605505_biz@design365.co.uk</email>
<paymentType xmlns="">GOODS</paymentType>
<primary xmlns="">false</primary>
</receiver>
</receiverList>
<sender>
<useCredentials xmlns="">
</useCredentials>
</sender>
<account xmlns="">
<email xmlns="">poeljames@gmail.com</email>
<phone xmlns="">
</phone>
</account>
<returnUrl xmlns="">http://89.238.152.7/funding/success/return</returnUrl>
</PayRequest>
有人能帮忙吗?
谢谢,
最佳答案
请参阅我在 New paypal system has stopped working with my code 中的回答
问题在于 Sandbox 中的 AppID。我们正在努力解决这个问题。
编辑:现在应该解决了。如果您发现任何其他问题,请告诉我。
关于paypal - 580022 - 收款人位于无法接收付款的国家/地区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15567640/