diff --git a/Plugin/Api/RefundInvoice.php b/Plugin/Api/RefundInvoice.php index 9804d64d..cfd67301 100644 --- a/Plugin/Api/RefundInvoice.php +++ b/Plugin/Api/RefundInvoice.php @@ -145,7 +145,7 @@ public function beforeRefund( } // Set the transaction id from response - $payment->setTransactionId($response->action_id); + $payment->setTransactionId($response['action_id']); $this->orderPaymentRepository->save($payment); $result = [$creditMemo, $order, $isOnline];