Skip to content

Commit 3cbfe13

Browse files
committed
skip free plan
1 parent 3fd34e2 commit 3cbfe13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Console/Commands/CreateStripePlans.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ protected function createProduct()
9494
protected function createStripePlans($plans)
9595
{
9696
foreach ($plans as $plan) {
97+
if ($plan->id === 'free') {
98+
$this->line('Skipping free plan, since the "free" plan is handled by Spark internally.');
99+
continue;
100+
}
101+
97102
if ($this->planExists($plan)) {
98103
$this->line('Stripe plan ' . $plan->id . ' already exists');
99104
} else {

0 commit comments

Comments
 (0)