Skip to content

Commit

Permalink
Reset order on expiry webhook
Browse files Browse the repository at this point in the history
ISSUE: CS-1653
  • Loading branch information
ivan-logeecom committed Jan 26, 2021
1 parent d859202 commit 6ba2292
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Mollie\Gambio\Services\Business;

use Mollie\BusinessLogic\Integration\Interfaces\OrderTransitionService as BaseService;
use Mollie\Gambio\OrderReset\OrderResetService;
use Mollie\Gambio\Utility\MollieTranslator;

/**
Expand Down Expand Up @@ -30,6 +31,8 @@ public function expireOrder($orderId, array $metadata)
{
$comment = $this->getComment('mollie_expired');
$this->mapToCancelledStatus($orderId, $comment);
$orderResetService = new OrderResetService();
$orderResetService->resetOrder($orderId);
}

/**
Expand Down

0 comments on commit 6ba2292

Please sign in to comment.