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 8251ef3 commit 56e8fc6Copy full SHA for 56e8fc6
src/Paystack.php
@@ -445,6 +445,19 @@ public function getAllSubscriptions()
445
return $this->setHttpResponse("/subscription", 'GET', [])->getData();
446
}
447
448
+ /**
449
+ * Get customer subscriptions
450
+ *
451
+ * @param integer $customer_id
452
+ * @return array
453
+ */
454
+ public function getCustomerSubscriptions($customer_id)
455
+ {
456
+ $this->setRequestOptions();
457
+
458
+ return $this->setHttpResponse('/subscription?customer=' . $customer_id, 'GET', [])->getData();
459
+ }
460
461
/**
462
* Enable a subscription using the subscription code and token
463
* @return array
0 commit comments