Skip to content

Commit

Permalink
Merge of tsa-713-missing-param
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-onufriichuk committed Jan 18, 2024
2 parents 2097855 + 25dc3b3 commit 6eabf5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Gateway/Command/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function execute(array $commandSubject)

$order = $payment->getOrder();
$rvvupOrderId = $payment->getAdditionalInformation('rvvup_order_id');
$orderState = $payment->getOrder()->getState();

$input = $this->refundCreateInputFactory->create(
$rvvupOrderId,
Expand All @@ -86,10 +87,7 @@ public function execute(array $commandSubject)
);

$result = $this->sdkProxy->refundCreate($input);
if ($rvvupOrderId && $order->getState()) {
$this->cache->clear($rvvupOrderId, $order->getState());
}

$this->cache->clear($rvvupOrderId, $orderState);
$refundId = $result['id'];
$refundStatus = $result['status'];

Expand Down

0 comments on commit 6eabf5f

Please sign in to comment.