Skip to content

Commit 240d177

Browse files
author
Okubanjo Oluwafunsho
committed
Support for fetching subscription details
Fetch the details of any subscription using the subscription id
1 parent dd85b21 commit 240d177

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Paystack.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,19 @@ public function disableSubscription(){
467467

468468
}
469469

470+
/**
471+
* Fetch details about a certain subscription
472+
* @param $subscription_id
473+
* @return array
474+
*/
475+
public function fetchSubscription($subscription_id){
476+
477+
$this->setRequestOptions();
478+
479+
return $this->setGetResponse('/subscription/'.$subscription_id)->getResponse();
480+
481+
}
482+
470483
}
471484

472485

0 commit comments

Comments
 (0)