Paypal REST API Adaptive / Multiple Payments (change payee)

前端 未结 2 946
执念已碎
执念已碎 2020-11-29 06:21

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 develo

相关标签:
2条回答
  • 2020-11-29 06:37

    Ok, after some extensive googling, I managed to find the answer here

    This general model enables us to easily add support for variety of payment models in the future (Parallel, Chained, etc). The Payee could be a funding instrument (like a Credit/Debit Card,) or a PayPal account (wallet) itself. The Payee could be set explicitly if the Payee is not the same as the Payment Facilitator ( in this current release we only support the case where the Payee is same as the Facilitator) so this is not currently required.

    So looks like a payee is just added to the transactions array, but this is not currently implemented as of the date of this answer.

    0 讨论(0)
  • 2020-11-29 06:48

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

    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.

    Additional info here: https://devblog.paypal.com/setting-payee/

    0 讨论(0)
提交回复
热议问题