Send money to multiple accounts via PayPal SDK or API

Issue

A website where users can buy digital products from other users and the host takes a cut out of those transactions. How to implement this system using the PayPal SDK or API?

Scenario:

  1. One buyer with a personal PayPal account
  2. One receiver with a personal PayPal account
  3. The host with a business PayPal account

I wonder if it’s possible that the buyer’s money to be split and sent to the receiver and host account simultaneously.

Solution

Collecting a cut or fee might be possible if first using the partner-referrals API to onboard each receiver (seller). Read about eligibility, and you must be an approved PayPal partner for all the available integrations that use it.

When using the partner-referrals API to onboard sellers, specify PARTNER_FEE as one of the third_party_details features you are asking permission for.

When creating each order for buyers at checkout time, specify a platform_fees object.

Any resulting platform fees will never be seen in the partner PayPal account, neither in sandbox nor live. They go directly to the associated bank account in the live environment. There will be an account report with the details.

Answered By – Preston PHX

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published