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 b38f8cb commit 064ad10Copy full SHA for 064ad10
src/Paystack.php
@@ -416,6 +416,23 @@ public function exportTransactions(){
416
417
}
418
419
+ /**
420
+ * Create a subscription to a plan from a customer.
421
+ * @return array
422
+ */
423
+ public function createSubscription(){
424
+
425
+ $data = [
426
+ "customer" => request()->customer, //Customer email or code
427
+ "plan" => request()->plan,
428
+ "authorization" => request()->authorization_code
429
+ ];
430
431
+ $this->setRequestOptions();
432
433
+ return $this->setGetResponse('/subscription', $data)->getResponse();
434
+ }
435
436
437
438
0 commit comments