Thanks to visit codestin.com Credit goes to github.com
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 56e8fc6 commit d35b9c0Copy full SHA for d35b9c0
src/Paystack.php
@@ -458,6 +458,19 @@ public function getCustomerSubscriptions($customer_id)
458
return $this->setHttpResponse('/subscription?customer=' . $customer_id, 'GET', [])->getData();
459
}
460
461
+ /**
462
+ * Get plan subscriptions
463
+ *
464
+ * @param integer $plan_id
465
+ * @return array
466
+ */
467
+ public function getPlanSubscriptions($plan_id)
468
+ {
469
+ $this->setRequestOptions();
470
+
471
+ return $this->setHttpResponse('/subscription?plan=' . $plan_id, 'GET', [])->getData();
472
+ }
473
474
/**
475
* Enable a subscription using the subscription code and token
476
* @return array
0 commit comments