Skip to content

Commit

Permalink
fix: Added missing parameter to clear cache call
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-rvvup committed Jan 16, 2024
1 parent 467266a commit 25dc3b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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,7 +87,7 @@ public function execute(array $commandSubject)
);

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

Expand Down

0 comments on commit 25dc3b3

Please sign in to comment.