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 087fa4b commit 40e496eCopy full SHA for 40e496e
src/Paystack.php
@@ -524,6 +524,26 @@ public function fetchPage($page_id){
524
525
}
526
527
+ /**
528
+ * Update the details about a particular page
529
+ * @param $page_id
530
+ * @return array
531
+ */
532
+ public function updatePage($page_id){
533
+
534
+ $data = [
535
536
+ "name" => request()->name,
537
+ "description" => request()->description,
538
+ "amount" => request()->amount
539
+ ];
540
541
+ $this->setRequestOptions();
542
543
+ return $this->setGetResponse('/page/'.$page_id, $data)->getResponse();
544
545
+ }
546
547
548
549
0 commit comments