robmcvey / cakephp-paypal

CakePHP 2.0 plugin for PayPal Website Payment Pro
60 stars 44 forks source link

Refunds and Multiple Currencies #11

Closed mikkelson closed 10 years ago

mikkelson commented 10 years ago

RefundTransaction support added to allow for refunds to be processed to a PayPal users account for transactions less than 60 days old. (https://developer.paypal.com/docs/classic/api/merchant/RefundTransaction_API_Operation_NVP/)

Multiple currency support added to the existing doDirectPayment method because:

  1. It's useful
  2. PayPal returns a misleading "You can not refund this type of transaction (10009)" message if you are using a Sandbox account that is not setup with the currency of the original transaction when attempting a refund.
robmcvey commented 10 years ago

Many thanks James! :+1:

I've added tests for the new methods too.

mikkelson commented 10 years ago

Great, thanks for writing the tests.