We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b2a6d commit 3ff1827Copy full SHA for 3ff1827
app/code/core/Mage/Paypal/Model/Ipn.php
@@ -532,6 +532,11 @@ protected function _registerPaymentDenial()
532
protected function _registerPaymentFailure()
533
{
534
$this->_importPaymentInformation();
535
+
536
+ foreach ($this->_order->getInvoiceCollection() as $invoice){
537
+ $invoice->cancel()->save();
538
+ }
539
540
$this->_order
541
->registerCancellation($this->_createIpnComment(''), false)
542
->save();
0 commit comments