贝宝向多个接收方付款.自适应付款? [英] PayPal payments to multiple receivers. Adaptive Payments?

查看:102
本文介绍了贝宝向多个接收方付款.自适应付款?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻求开发一种有效地基于购物车的软件许可管理系统的应用程序.

I am looking to develop an application that is effectively a cart based software licensing management system.

在大多数情况下,购物车系统将完全由一个供应商所有,因此,无论将什么物品添加到购物车中,都只有一个人需要收款.

In most scenarios, the cart system will be entirely owned by one vendor, therefore no matter what items are added to the cart, only one person will need to receive the money.

在潜在用户的反馈中,有些人希望共享购物车系统并包含可以由多个人出售的产品组合,因此可能需要在多个人之间接收购物车的总付款.

In feedback from potential users, there are some who desire the cart system to be shared and contain a mix of products that could be sold by multiple people, therefore the total payment for the cart could need to be received between multiple people.

例如

Product A
Sold by Developer A
$10

Product B
Sold by Developer B
$15

Product C
Sold by Developer C
$20

Product D
Sold by Developer A
$15

如果买家将上述所有商品添加到购物车中,则应支付60美元.但是,开发人员A应获得25美元,开发人员B应获得15美元,开发人员C应获得20美元.

If a buyer adds all of the above to their cart, they should pay $60. But Developer A should receive $25, Developer B $15, and Developer C $20.

因此,为了方便用户使用,我当然希望该过程对最终用户完全透明,例如他们只进行了一笔价值60美元的交易,但是在后台PayPal和应用程序应该在正确的收款人之间进行分配.

So, of course, for the sake of being user friendly, I want that process to be entirely transparent to the end user, e.g. they are just making one transaction worth $60, but behind the scenes PayPal and the application should split that between the correct recipients.

因此,使用PayPal API可以做到这一点.自适应付款有可能吗?是否有一个很好的代码示例(PHP)涵盖了这种情况?

So, is that possible with the PayPal API. And is that possible with Adaptive Payments? Is there a good code example (PHP) that covers this scenario?

推荐答案

是的,使用自适应支付,尤其是

Yes, that is possible with Adaptive Payments, specifically the Pay API.

我的用于PayPal的PHP类库将使您的操作变得非常快捷,简单,其中包括一个功能齐全的链式支付示例.

My PHP class library for PayPal will make this very quick and easy for you, and it includes a fully functional chained payment sample.

这篇关于贝宝向多个接收方付款.自适应付款?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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