Paypal REST API 自适应/多次付款(更改收款人) [英] Paypal REST API Adaptive / Multiple Payments (change payee)

查看:19
本文介绍了Paypal REST API 自适应/多次付款(更改收款人)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始研究 Paypal 的 REST api.我似乎看不到的一件事是功能 paypal 调用 Adaptive Payments.这允许我使用我的开发者帐户注册我的应用程序,但不参与实际付款.例如我的应用允许我的用户接受他们通过我的应用销售的服务的付款.

I've just started looking at Paypal's REST api. One thing I can't seem to see is a feature paypal call Adaptive Payments. This allows me to register my app with my developer account, but not be involved in the actual payments. e.g. my app allows my users to accept payment for their services, which they sell through my app.

我已经浏览了 Paypals REST API 文档.我已经弄清楚如何完成付款,但所有交易都发送到我的开发人员贝宝帐户.我找不到可以在哪里更改收款人详细信息(即卖家)以允许将付款发送到不同的贝宝帐户.

I have been through Paypals REST API documents. I have worked out how to complete a payment, but all the transactions get sent through to my developer paypal account. I can't find where i would change the receiver details, i.e. the seller, to allow payments to be sent to a different paypal account.

推荐答案

自 2017 年 1 月 3 日起,PayPal 现在添加了将收款人设置为您希望的任何人的功能.

As of January 3rd 2017, PayPal has now added the ability to set the payee to anyone you wish.

注意下面的新 payee 对象:

Notice the new payee object below:

{
    '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'
    }]
}

但是,似乎无法拥有多个收款人.

However, there doesn't seem to be an ability to have multiple payee's.

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

这篇关于Paypal REST API 自适应/多次付款(更改收款人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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