We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534efae commit 28ca22dCopy full SHA for 28ca22d
src/Console/Commands/CreateStripePlans.php
@@ -74,7 +74,7 @@ protected function createProduct()
74
'id' => $id,
75
'name' => Spark::$details['product'],
76
'statement_descriptor' => Spark::$details['vendor'],
77
- 'unit_label' => 'JobAds',
+ 'unit_label' => Spark::$details['unit_label'] ?? null,
78
'type' => 'service',
79
]);
80
@@ -107,7 +107,7 @@ protected function createStripePlans($plans)
107
'currency' => config('cashier.currency'),
108
'trial_period_days' => $plan->trialDays,
109
'billing_scheme' => 'per_unit',
110
- 'usage_type' => Spark::noProrate() ? 'licensed' : 'metered',
+ 'usage_type' => 'licensed',
111
112
113
$this->info('Stripe plan created: ' . $plan->id);
0 commit comments