Reputation: 1462
I have a codeigniter website integrated with paypal. I have a user table in my database which keeps track of their funding. User can withdraw that money at any time and I am trying to send them money via paypal single payout rest api call. Is there any way I can get notified when user accepts it so that I can decrement their funding in my User Table?
Right now i am using this api from paypal and i am using synchronous call https://developer.paypal.com/docs/integration/direct/create-single-payout/
Upvotes: 2
Views: 351
Reputation: 9992
By using IPN, it's possible to set the recipient's address and the notification_url dynamically For more detail check here
So using this method it's possible for a payment to 'User ABC' to be made at your site, and for the payment to be sent to 'User ABC', and for the IPN notification from Paypal to post to a listener script at a URL at your site.
Upvotes: 4