File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public function makePaymentRequest()
127
127
*
128
128
* ]
129
129
*/
130
- 'metadata ' => request ()->metadata
130
+ 'metadata ' => request ()->metadata
131
131
];
132
132
133
133
// Remove the fields which were not sent (value would be null)
@@ -319,7 +319,6 @@ public function createPlan()
319
319
$ this ->setRequestOptions ();
320
320
321
321
$ this ->setHttpResponse ("/plan " , 'POST ' , $ data );
322
-
323
322
}
324
323
325
324
/**
@@ -434,6 +433,18 @@ public function createSubscription()
434
433
$ this ->setHttpResponse ('/subscription ' , 'POST ' , $ data );
435
434
}
436
435
436
+ /**
437
+ * Get all the subscriptions made on Paystack.
438
+ *
439
+ * @return array
440
+ */
441
+ public function getAllSubscriptions ()
442
+ {
443
+ $ this ->setRequestOptions ();
444
+
445
+ return $ this ->setHttpResponse ("/subscription " , 'GET ' , [])->getData ();
446
+ }
447
+
437
448
/**
438
449
* Enable a subscription using the subscription code and token
439
450
* @return array
You can’t perform that action at this time.
0 commit comments