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 fc0eef2 commit 3d25f02Copy full SHA for 3d25f02
src/Paystack.php
@@ -307,6 +307,21 @@ public function createPlan(){
307
308
}
309
310
+ /**
311
+ * Fetch any plan based on its plan id or code
312
+ * @param $plan_code
313
+ * @return mixed
314
+ */
315
+ public function fetchPlan($plan_code){
316
+
317
+ $this->setRequestOptions();
318
319
+ $this->response = $this->client->post($this->baseUrl .'/plan/' . $plan_code, []);
320
321
+ return $this->response->getResponse();
322
323
+ }
324
325
326
327
0 commit comments