Skip to content

Commit

Permalink
Update model refresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Aug 19, 2021
1 parent 83f74cb commit c7b63b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ public function start(): Response
{
$this->init();

if(empty($this->model->getExternalId())) {

}
$this->model->refresh();

$request = GetQR::make($this->model);

Expand Down Expand Up @@ -76,7 +74,5 @@ protected function init(): void
$details = $this->details($response->toArray());

$this->payment->cashier()->updateOrCreate(compact('external_id'), compact('details'));

$this->payment->refresh();
}
}

0 comments on commit c7b63b1

Please sign in to comment.