mobilebackendgateway/app/Services/WalletService.php

37 lines
632 B
PHP

<?php
namespace App\Services;
use App\Traits\ConsumesExternalService;
class WalletService
{
use ConsumesExternalService;
/**
* @var string
*/
public $baseUri ;
/**
* @var string
*/
public $key ;
public function __construct()
{
$this->baseUri = config('services.wallet_service.base_uri');
$this->key = config('services.wallet_service.key');
}
public function post($uri , $data)
{
return $this->perfomRequest('POST',$uri,$data);
}
public function get($uri , $data)
{
return $this->perfomRequest('GET',$uri,$data);
}
}