Skip to content

Commit ff2e537

Browse files
author
Okubanjo Oluwafunsho
committed
Add support to fetch all customers
You can now fetch all customers
1 parent 2dbf2c6 commit ff2e537

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Paystack.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,20 @@ public function createCustomer(){
362362

363363
}
364364

365+
/**
366+
* Fetches all customers
367+
* @return array
368+
*/
369+
public function fetchAllCustomers(){
370+
371+
$this->setRequestOptions();
372+
373+
return $this->setGetResponse('/customer', [])->getResponse();
374+
375+
}
376+
377+
378+
365379
}
366380

367381

0 commit comments

Comments
 (0)