我应该使用哪种PayPal API向付款关系人发送付款

Cas*_*ynn 3 paypal paypal-sandbox

我在一家网站公司工作,该公司向向我们网站发送流量的合作伙伴支付佣金.目前,我们会跟踪从关联公司转到我们网站的流量,然后通过PayPal进行冗长的手动流程.

这是我们当前流程的要点:

1. Review affiliate commission report (our website back end generates this)
2. Copy/paste email & amount fields, one at a time, into the PayPal Send Payment screen (open in a different browser tab)
3. Specify additional fields in the PayPay Send Payment screen and select "continue"
Run Code Online (Sandbox Code Playgroud)

考虑到我们每月支付的关联公司数量,这可能会非常耗时,因此如果可能的话,我们希望使用php脚本自动执行此操作.我不熟悉任何PayPal的API - 有人可以请我参考最适合解决这个问题的API.谢谢!

Pra*_*een 8

PayPal有2种API用于此类用例.

  1. MassPay
  2. 通过自适应付款 API 支付业务付款

MassPay API用于在后端(支付)向大量收件人发送付款(250通过API或通过文件上传最多3000 )

自适应付款API不仅可以用于在后端发送付款,还允许您通过链式付款在原始交易期间支付您的关联公司.它还为您提供了一种方法来延迟联盟会员支付,直到最多9天,以处理产品退货等事情.您可以找到有关延迟链支付如何在这里工作的信息.

您可以在x.com上找到适用于Adaptive Payments API的php代码示例.