cancel
Showing results for 
Search instead for 
Did you mean: 

Outgoing payments, API

SOLVED
Highlighted
Member

Outgoing payments, API

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Member

Re: Outgoing payments, API

Never mind, got it. Sender id the account connected to the app. Logically :-) Okay, it works now, thank you for support

3 REPLIES
Moderator

Re: Outgoing payments, API

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:

https://developer.paypal.com/docs/integration/direct/payouts/

 

 

Member

Re: Outgoing payments, API

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.

Member

Re: Outgoing payments, API

Never mind, got it. Sender id the account connected to the app. Logically :-) Okay, it works now, thank you for support