File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,40 @@ public function createSubscription(){
433
433
return $ this ->setGetResponse ('/subscription ' , $ data )->getResponse ();
434
434
}
435
435
436
+ /**
437
+ * Enable a subscription using the subscription code and token
438
+ * @return array
439
+ */
440
+ public function enableSubscription (){
441
+
442
+ $ data = [
443
+ "code " => request ()->code ,
444
+ "token " => request ()->token ,
445
+ ];
446
+
447
+ $ this ->setRequestOptions ();
448
+
449
+ return $ this ->setGetResponse ('/subscription/enable ' , $ data )->getResponse ();
450
+
451
+ }
452
+
453
+ /**
454
+ * Disable a subscription using the subscription code and token
455
+ * @return array
456
+ */
457
+ public function disableSubscription (){
458
+
459
+ $ data = [
460
+ "code " => request ()->code ,
461
+ "token " => request ()->token ,
462
+ ];
463
+
464
+ $ this ->setRequestOptions ();
465
+
466
+ return $ this ->setGetResponse ('/subscription/disable ' , $ data )->getResponse ();
467
+
468
+ }
469
+
436
470
}
437
471
438
472
You can’t perform that action at this time.
0 commit comments