Updated Billing Plan to have Delete Plan sample code.

- Added helper method in Plan.php to allow deleting a billing plan
- Fixes #171
This commit is contained in:
japatel
2014-12-01 13:20:36 -06:00
parent 493c6f8531
commit ff5588bbfe
6 changed files with 107 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ if (PHP_SAPI == 'cli') {
// the built in PHP Server
if (version_compare(phpversion(), '5.4.0', '>=') === true) {
//exec('php -S -t ' . __DIR__ . '/');
$cmd = "php -S localhost:5000 -t " . __DIR__ . '/';
$cmd = "php -S localhost:5000 -t " . __DIR__;
$descriptors = array(
0 => array("pipe", "r"),
1 => STDOUT,
@@ -457,6 +457,17 @@ if (PHP_SAPI == 'cli') {
</div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col-md-8"><h5>Delete Billing Plan</h5></div>
<div class="col-md-4">
<a href="billing/DeletePlan.php" class="btn btn-primary pull-left execute"> Try It <i
class="fa fa-play-circle-o"></i></a>
<a href="doc/billing/DeletePlan.html" class="btn btn-default pull-right">Source <i
class="fa fa-file-code-o"></i></a>
</div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col-md-8"><h5>List Billing Plans</h5></div>