Skip to content

Commit

Permalink
ErrorException : Trying to get property 'external_id' of non-object
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Aug 19, 2021
1 parent eac89b2 commit 715bbca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function start(): Response

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

dd($this->model->getExternalId());
return $this->request($request, QrCode::class);
}

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

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

// $this->payment->cashier()->exists()
// ? $this->payment->cashier()->update(compact('external_id', 'details'))
// : $this->payment->cashier()->create(compact('external_id', 'details'));

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

0 comments on commit 715bbca

Please sign in to comment.