PayPal REST API付款收款人

时间:2013-08-26 23:07:18

标签: php api rest paypal

使用REST API并创建付款,您可以指定收款人吗?例如,我将在保险库中存储信用卡,用户将点击一个按钮向所有价格最高的用户收费。如何将这笔钱发送到他的PayPal帐户和商业PayPal帐户?请让我知道并谢谢!

2 个答案:

答案 0 :(得分:1)

尚未 - API不支持在API调用中设置收款人。 APi呼叫者被假定为收款人。这仍然是有效的,希望我们能尽快完成。

答案 1 :(得分:1)

自2017年1月3日起,REST API现在可以将收款人设置为您想要的任何人。

请注意下面的新payee对象:

{
    'intent':'sale',
    'redirect_urls':{
        'return_url':'http://localhost:3000/process',
        'cancel_url':'http://localhost:3000/cancel'
    },
    'payer':{
        'payment_method':'paypal'
    },
    'transactions':[{
        'amount':{
            'total':'10',
            'currency':'USD'
        },
        'payee':{
            'email': 'payee@test.com'
        },
        'description':'My amazing product'
    }]
}

此处的其他信息:https://devblog.paypal.com/setting-payee/

相关问题