From ce82051725a9c6030aa3867d92d87a5532e0a656 Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Fri, 20 Sep 2024 16:08:27 +0300 Subject: [PATCH] [SL-230] init --- src/Service/SaferPayOrderStatusService.php | 5 +++++ 1 file changed, 5 insertions(+) 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)