We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af5ce3d commit 087fa4bCopy full SHA for 087fa4b
src/Paystack.php
@@ -503,14 +503,27 @@ public function createPage(){
503
* Fetches all the pages the merchant has
504
* @return array
505
*/
506
- public function fetchPages(){
+ public function getAllPages(){
507
508
$this->setRequestOptions();
509
510
return $this->setGetResponse('/page', [])->getResponse();
511
512
}
513
514
+ /**
515
+ * Fetch details about a certain page using its id or slug
516
+ * @param $page_id
517
+ * @return array
518
+ */
519
+ public function fetchPage($page_id){
520
+
521
+ $this->setRequestOptions();
522
523
+ return $this->setGetResponse('/page/'.$page_id, [])->getResponse();
524
525
+ }
526
527
528
529
0 commit comments