Update HasBitinflowPaymentsWallet.php

This commit is contained in:
envoyr authored and GitHub committed 2022-09-29 16:22:14 +02:00
1 parent 8e88d12d88
commit 5caef21b01
1 file changed
+2 -2
@@ -34,7 +34,7 @@ trait HasBitinflowPaymentsWallet
* @return mixed
* @throws GuzzleException
*/
protected function asPaymentsUser(string $method, string $url, array $attributes = []): mixed
public function asPaymentsUser(string $method, string $url, array $attributes = []): mixed
{
$client = new Client([
'base_uri' => config('bitinflow-accounts.payments.base_url'),
@@ -58,7 +58,7 @@ trait HasBitinflowPaymentsWallet
* @return object|null
* @throws GuzzleException
*/
protected function getPaymentsUser(): ?object
public function getPaymentsUser(): ?object
{
if (is_null($this->paymentsUser)) {
$this->paymentsUser = $this->asPaymentsUser('GET', 'user');