Hi, I am developing a web page that accepts paypal payments, but sometimes will also give money to users. I am using PayPal PHP SDK ( https://paypal.github.io/PayPal-PHP-SDK/ ). I was successful with ingoing payments (user paying to my website for some services) but I cannot find much info on how to create outgoing payments (website pays to users). I was able to create a payment and define receiver as Payee, but payment then needs to be approved. But how? Website merchant should approve it.
Solved! Go to Solution.
So Payouts is probably the best solution if the API caller is always the person paying out, with Payouts the payment to a defined reciever is implicity approved since the API caller is the payer so there is no need to redirect user to PayPal to approve it. Check it out here for more details:
Thank you, that's probably what I wanted. But one more question - when testing in sandbox, how do I specify what sandbox account will be the sender? I am receiving Insufficient funds error, and I need to specify who should pay the money.