Added handling for paypal reversal and refunded statuses. Closes #198.

This commit is contained in:
Mike Jolley 2011-11-16 10:37:46 +00:00
parent 5dc7c02b5c
commit 4713e02389
2 changed files with 6 additions and 0 deletions

View File

@ -389,6 +389,11 @@ class woocommerce_paypal extends woocommerce_payment_gateway {
// Order failed
$order->update_status('failed', sprintf(__('Payment %s via IPN.', 'woothemes'), strtolower($posted['payment_status']) ) );
break;
case "refunded" :
case "reversed" :
// Mark order as refunded
$order->update_status('refunded', sprintf(__('Payment %s via IPN.', 'woothemes'), strtolower($posted['payment_status']) ) );
break;
default:
// No action
break;

View File

@ -102,6 +102,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
* Prevent checkout being submitted twice
* Made order notes optional
* PayPal standard stores payer email address
* Added handling for paypal reversal and refunded statuses
= 1.2.1 - 10/11/2011 =
* Reworked downloadable and virtual products - now variations can be downloadable/virtual too making it more flexible