Which PayPal API should I use to send payments to affiliates

纵饮孤独 提交于 2019-12-12 12:30:15

问题


I work for a website-company that pays a commission to partners who send traffic to our website. Currently we track the traffic referred to our site from the affiliates and then go through a tedious manual process of sending payment via PayPal.

This is the gist of our current process:

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"

This can get very time consuming considering the number of affiliates we pay every month, so if possible we would like to automate this with a php script. I'm unfamiliar with any of PayPal's APIs - could someone please refer me to the API best suited for solving this problem. Thanks!


回答1:


PayPal has 2 APIs for this kind of use cases.

  1. MassPay
  2. Business Payments through Adaptive Payments APIs

MassPay API is for sending payments in the back end (disbursements) to large number of recipients (250 through API or upto 3000 through file upload)

Adaptive Payments API can be used to send payments not only in the back-end but also allows you to payout your affiliates during the original transaction itself through chained payments. It also provides you a way to delay the affiliate payout until up to 9 0 days to handle things like product returns, etc. You can find information about how the delayed chain payments work here.

You can find php code samples for Adaptive Payments APIs here on x.com.



来源:https://stackoverflow.com/questions/4820789/which-paypal-api-should-i-use-to-send-payments-to-affiliates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!