Skip to content

Commit af5ce3d

Browse files
author
Okubanjo Oluwafunsho
committed
Support for fetching all pages
Fetches all the pages the merchant has
1 parent 298bd37 commit af5ce3d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Paystack.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,16 @@ public function createPage(){
499499

500500
}
501501

502+
/**
503+
* Fetches all the pages the merchant has
504+
* @return array
505+
*/
502506
public function fetchPages(){
503-
507+
508+
$this->setRequestOptions();
509+
510+
return $this->setGetResponse('/page', [])->getResponse();
511+
504512
}
505513

506514
}

0 commit comments

Comments
 (0)