Skip to content

Commit 28ca22d

Browse files
committed
unit_label isn't hardcoded anymore, fixed incorrect useage of protation
1 parent 534efae commit 28ca22d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/Commands/CreateStripePlans.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function createProduct()
7474
'id' => $id,
7575
'name' => Spark::$details['product'],
7676
'statement_descriptor' => Spark::$details['vendor'],
77-
'unit_label' => 'JobAds',
77+
'unit_label' => Spark::$details['unit_label'] ?? null,
7878
'type' => 'service',
7979
]);
8080

@@ -107,7 +107,7 @@ protected function createStripePlans($plans)
107107
'currency' => config('cashier.currency'),
108108
'trial_period_days' => $plan->trialDays,
109109
'billing_scheme' => 'per_unit',
110-
'usage_type' => Spark::noProrate() ? 'licensed' : 'metered',
110+
'usage_type' => 'licensed',
111111
]);
112112

113113
$this->info('Stripe plan created: ' . $plan->id);

0 commit comments

Comments
 (0)