如何通过自适应支付扩​​展现有的paypal?

时间:2014-10-10 09:47:04

标签: php wordpress paypal

我对PHP开发有一点怀疑。

现在我在我的WordPress网站上使用PayPal支付产品购物车。

付款可以发送给一个合作伙伴。

现在我想将所有付款拆分给两个PayPal合作伙伴。

例如产品价格10 $

然后

用户1 = 8 $

用户2 = 2 $

如果有可能进行此开发。每笔付款将分为两个合作伙伴。所有付款将分成两个合作伙伴。 如果有任何想法或示例代码然后给。它可能对我来说很充实。

提前致谢

1 个答案:

答案 0 :(得分:1)

有一个功能可用于此。它被称为" Adaptive Payment"。

The Adaptive Payments API allows merchants and developers to pay almost anyone and set up automated payments. They can create applications that manage payments, payment preapprovals, and refunds. They can also send money peer-to-peer, split payments in both parallel and chained models, accept guest payments, and schedule disbursements. The Adaptive Payments API works on multiple platforms including the web and mobile environments.

示例API请求:例如:Parallel Payments

actionType=PAY      #The action taken in the Pay request (that is, the PAY action)
&clientDetails.applicationId=APP-80W284485P519543T #Standard Sandbox App ID
&clientDetails.ipAddress=127.0.0.1     #Address from which request is sent  
&senderEmail=sender_email
&currencyCode=USD       #The currency, e.g. US dollars
&receiverList.receiver(0).amount=3.00     #The payment amount for the first receiver 
&receiverList.receiver(0).email=first_receiver_email
&receiverList.receiver(1).amount=4.00   #The payment amount for the second receiver 
&receiverList.receiver(1).email=second_receiver_email
&requestEnvelope.errorLanguage=en_US
&returnUrl=http://www.yourdomain.com/success.html   #For use if the consumer proceeds with payment
&cancelUrl=http://www.yourdomain.com/cancel.html    #For use if the consumer decides not to proceed with payment

github

中的示例代码