We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit baa308e7 authored by Alessio Zampatti's avatar Alessio Zampatti Committed by GitHub

PW-1913: fixes #594, on OFFER_CLOSED, if order is already cancelled, don't cancel it again (#597)

parent 28656f7a
...@@ -929,6 +929,12 @@ class Cron ...@@ -929,6 +929,12 @@ class Cron
break; break;
} }
// Order is already Cancelled
if ($this->_order->isCanceled()){
$this->_adyenLogger->addAdyenNotificationCronjob("Order is already cancelled, skipping OFFER_CLOSED");
break;
}
/* /*
* For cards, it can be 'visa', 'maestro',... * For cards, it can be 'visa', 'maestro',...
* For alternatives, it can be 'ideal', 'directEbanking',... * For alternatives, it can be 'ideal', 'directEbanking',...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment