mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
Update HasBitinflowPaymentsWallet.php
This commit is contained in:
@@ -34,7 +34,7 @@ trait HasBitinflowPaymentsWallet
|
|||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*/
|
*/
|
||||||
private function asPaymentsUser(string $method, string $url, array $attributes = []): mixed
|
protected function asPaymentsUser(string $method, string $url, array $attributes = []): mixed
|
||||||
{
|
{
|
||||||
$client = new Client([
|
$client = new Client([
|
||||||
'base_uri' => config('bitinflow-accounts.payments.base_url'),
|
'base_uri' => config('bitinflow-accounts.payments.base_url'),
|
||||||
@@ -58,7 +58,7 @@ trait HasBitinflowPaymentsWallet
|
|||||||
* @return object|null
|
* @return object|null
|
||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*/
|
*/
|
||||||
public function getPaymentsUser(): ?object
|
protected function getPaymentsUser(): ?object
|
||||||
{
|
{
|
||||||
if (is_null($this->paymentsUser)) {
|
if (is_null($this->paymentsUser)) {
|
||||||
$this->paymentsUser = $this->asPaymentsUser('GET', 'user');
|
$this->paymentsUser = $this->asPaymentsUser('GET', 'user');
|
||||||
|
|||||||
Reference in New Issue
Block a user