We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2e537 commit 6ae32d4Copy full SHA for 6ae32d4
src/Paystack.php
@@ -374,7 +374,18 @@ public function fetchAllCustomers(){
374
375
}
376
377
-
+ /**
378
+ * Fetch a customer based on id or code
379
+ * @param $customer_id
380
+ * @return array
381
+ */
382
+ public function fetchCustomer($customer_id){
383
+
384
+ $this->setRequestOptions();
385
386
+ return $this->setGetResponse('/customer/'. $customer_id, [])->getResponse();
387
388
+ }
389
390
391
0 commit comments