Fix/Rename Ezypay methods

This commit is contained in:
Deon George
2020-02-01 22:12:31 +11:00
parent baf9bc25e8
commit 01a7d73c17
5 changed files with 14 additions and 15 deletions

25
app/Classes/External/Payments.php vendored Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Classes\External;
use GuzzleHttp\Client;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Cache;
abstract class Payments
{
abstract protected function connect(string $url,array $args=[]);
abstract public function getCustomers(): Collection;
abstract public function getDebits($opt=[]): Collection;
abstract public function getSettlements($opt=[]): Collection;
protected function getClient(string $base_uri): Client
{
return new Client(['base_uri'=>$base_uri]);
}
protected function mustPause()
{
return Cache::get('api_throttle');
}
}