Skip to content

Commit d741744

Browse files
Merge pull request #81 from lukman008/master
fixed empty JSON response bug on some methods
2 parents 1150bf5 + 2f080b4 commit d741744

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Paystack.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function createPlan()
340340

341341
$this->setRequestOptions();
342342

343-
$this->setHttpResponse("/plan", 'POST', $data);
343+
return $this->setHttpResponse("/plan", 'POST', $data)->getResponse();
344344

345345
}
346346

@@ -453,7 +453,7 @@ public function createSubscription()
453453
];
454454

455455
$this->setRequestOptions();
456-
$this->setHttpResponse('/subscription', 'POST', $data);
456+
return $this->setHttpResponse('/subscription', 'POST', $data)->getResponse();
457457
}
458458

459459
/**
@@ -547,7 +547,7 @@ public function createPage()
547547
];
548548

549549
$this->setRequestOptions();
550-
$this->setHttpResponse('/page', 'POST', $data);
550+
return $this->setHttpResponse('/page', 'POST', $data)->getResponse();
551551
}
552552

553553
/**

0 commit comments

Comments
 (0)