Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I programmatically refund using paypal?

Tags:

php

paypal

working on my paypal integration and its going great - I was wondering that in the case a refund needs to be made is there a way to have a refund made programmatically?

like image 347
Ali Avatar asked Jun 08 '09 10:06

Ali


2 Answers

From my understanding, you should use the Refund API.

  • Refund using SOAP
  • Refund using NVP
like image 50
PatrikAkerstrand Avatar answered Sep 19 '22 21:09

PatrikAkerstrand


Doing a refund in PayPal is straight forward if you follow the API documentation mentioned by Machine.

You may also find, if you prefer to save money, that you can Void a transaction in PayPal, before it is captured (usually before midnight on the day of the transaction), which is free.

I have found that always sending a void first, then if the void fails, sending the refund works well without much overhead.

like image 40
Jason Michael Avatar answered Sep 22 '22 21:09

Jason Michael