I’m working on a Laravel project where I need to implement the following functionality:
- The acceptor (user receiving payments) provides their card details
(card number, expiry date, CVV) in the application. - These card details are sent to PayPal, and I store the returned
token securely for future use. The sender (user making the payment)
also provides their card details, and payments are processed as
follows: 90% of the payment goes to the acceptor. 10% of the payment
goes to the admin as a fee.
Initially, I considered using PayPal Payouts, as it supports splitting payments and managing multiple recipients. However, the recipient_type in PayPal Payouts only allows EMAIL, PHONE, or PAYPAL_ID. When I send the acceptor’s card details to PayPal to generate a token, PayPal doesn’t return any of these recipient types (EMAIL, PHONE, or PAYPAL_ID) that I could use to send payouts.
Is there a way to use PayPal Payouts or any other PayPal API for this functionality? If not, what would be the best approach to handle this type of payment flow where both parties provide card details, and the payment is split between the acceptor and the admin?
Any guidance or recommendations would be highly appreciated!