Added Ezypayment next payment check
This commit is contained in:
@@ -38,10 +38,17 @@ class Ezypay extends Payments
|
||||
return json_decode($result->getBody()->getContents());
|
||||
}
|
||||
|
||||
public function getCustomer(string $id)
|
||||
{
|
||||
return Cache::remember(__METHOD__.$id,86400,function() use ($id) {
|
||||
return collect($this->connect('accounts/customerid/'.$id));
|
||||
});
|
||||
}
|
||||
|
||||
public function getCustomers(): Collection
|
||||
{
|
||||
return Cache::remember(__METHOD__,86400,function() {
|
||||
return collect($this->connect('customers'));
|
||||
return collect($this->connect('customers?pageSize=100'));
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user