Skip to content

Commit 7de515c

Browse files
author
Okubanjo Oluwafunsho
committed
Updated all create function not to return anything
1 parent d69cf27 commit 7de515c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Paystack.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ private function getData()
280280

281281
/**
282282
* Create a plan
283-
* @return array
284283
*/
285284
public function createPlan(){
286285

@@ -296,7 +295,7 @@ public function createPlan(){
296295

297296
$this->setRequestOptions();
298297

299-
return $this->setGetResponse("/plan", $data)->getResponse();
298+
$this->response = $this->setGetResponse("/plan", $data);
300299

301300
}
302301

@@ -353,7 +352,7 @@ public function createCustomer(){
353352

354353
$this->setRequestOptions();
355354

356-
return $this->setGetResponse('/customer', $data)->getResponse();
355+
$this->response = $this->setGetResponse('/customer', $data);
357356

358357
}
359358

@@ -424,7 +423,7 @@ public function createSubscription(){
424423

425424
$this->setRequestOptions();
426425

427-
return $this->setGetResponse('/subscription', $data)->getResponse();
426+
$this->response = $this->setGetResponse('/subscription', $data);
428427
}
429428

430429
/**
@@ -488,7 +487,7 @@ public function createPage(){
488487

489488
$this->setRequestOptions();
490489

491-
return $this->setGetResponse('/page', $data)->getResponse();
490+
$this->response = $this->setGetResponse('/page', $data);
492491

493492
}
494493

0 commit comments

Comments
 (0)