加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – Paypal单一支付 – 发件人资金不足错误

发布时间:2020-12-20 13:06:12 所属栏目:Python 来源:网络整理
导读:我正在尝试使用真实银行账户在实时环境中进行Paypal支付.代码已经在开发环境中工作. 问题是Paypal返回以下错误: INSUFFICIENT_FUNDS: Sender has insufficient funds 我通过调用使用REST API https://api.paypal.com/v1/payments/payouts?sync_mode=true [P
我正在尝试使用真实银行账户在实时环境中进行Paypal支付.代码已经在开发环境中工作.

问题是Paypal返回以下错误:

INSUFFICIENT_FUNDS: Sender has insufficient funds

我通过调用使用REST API

https://api.paypal.com/v1/payments/payouts?sync_mode=true [POST]

我正在使用他们的python SDK并使用以下值发送POST消息:

{
    "sender_batch_header": {
    "email_subject": "Paypal Payout"
    },"items": [{
        "recipient_type": "EMAIL","amount": {"value": "1","currency": "USD"},"receiver": "test@gmail.com","note": "123 Payout","sender_item_id": 123456
    }]
})

我通过电话联系Paypal并询问错误,他们说我们需要手动将资金存入paypal帐户.我的第一个问题是:我可以通过他们的API做到这一点吗? (我找不到怎么样)

他们还说,这个问题是因为我做了大量付款(有1个付款项目)……他们告诉我,我可以通过使用他们的“定期付款”流程来避免这个问题.所以我的第二个问题是我应该使用的API资源是什么?或者我们无法在他们的网页上找到关于他们的“定期付款”的信息.

背景:我已经有了银行账户中的钱,我希望Paypal能够从每次付款中自动提取.

解决方法

您收到该特定错误消息的原因是您的PayPal帐户中没有足够的资金来支付批量付款.要使Mass Pay API生效,您必须在发送给收件人的PayPal余额中拥有相同数量的资金.

以下是PayPal开发者网站上有关Mass Pay的一些信息:

Merchants use the Mass Pay API to send money instantly to up to 250 recipients at once. To send payments to multiple recipients,merchants only need the recipient’s PayPal account email address,the payment amount,and the currency code. Merchants can manually upload a file listing payments or create them programmatically using the Mass Pay API.

Mass Pay Information from PayPal Developer

Mass Payments Getting Started Guide

例如,如果您通过Mass Pay API向多个收件人发送$2,000.00,您需要在PayPal帐户中支付$2,000.00才能发送给收件人.

您无法通过API调用向您的PayPal帐户添加资金.

以下是如何手动为您的PayPal帐户添加资金:
Adding Funds to your PayPal Account

您可以设置Balance Manager以在PayPal余额中保留一定的金额.这将允许PayPal自动从您的银行账户中获取资金以维持您的PayPal账户余额:
Setting up Balance Manager

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读