diff --git a/src/Service/SaferPayOrderStatusService.php b/src/Service/SaferPayOrderStatusService.php index 711b837c..d3c32483 100755 --- a/src/Service/SaferPayOrderStatusService.php +++ b/src/Service/SaferPayOrderStatusService.php @@ -197,6 +197,11 @@ public function cancel(Order $order) $order->update(); $saferPayOrder->canceled = 1; $saferPayOrder->update(); + + $assertId = $this->orderRepository->getAssertIdBySaferPayOrderId($saferPayOrder->id); + $saferPayAssert = new SaferPayAssert($assertId); + $saferPayAssert->status = TransactionStatus::CANCELED; + $saferPayAssert->update(); } public function refund(Order $order, $refundedAmount)