PayPal split payment backend psuedoCode

Job ID: 37091938

Budget: $30 – $250 CAD

I am looking for a PayPal expert to provide design and/or pseudo code for performing a split payment. Receive payment from a customer, send a PORTION of the payment to the supplier, and retain the remainder, all in one single transaction. I have provided a view of a Stripe process that does similar. I am looking for same in PayPal

Specific Requirements:
- PayPal experience and expertise

Ideal Skills and Experience:
- PayPal