diff --git a/src/Action/CaptureAction.php b/src/Action/CaptureAction.php index 263be12..98c7c2d 100644 --- a/src/Action/CaptureAction.php +++ b/src/Action/CaptureAction.php @@ -74,8 +74,6 @@ public function execute($request): void $token = $request->getToken(); $payUdata = $this->prepareOrder($token, $order); - $result = $this->openPayUBridge->create($payUdata); - if (null !== $model['orderId']) { /** @var mixed $response */ $response = $this->openPayUBridge->retrieve((string) $model['orderId'])->getResponse(); @@ -89,6 +87,8 @@ public function execute($request): void } } + $result = $this->openPayUBridge->create($payUdata); + if (null !== $result) { /** @var mixed $response */ $response = $result->getResponse();