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 3cbfe13 commit f9ce6d7Copy full SHA for f9ce6d7
src/Console/Commands/CreateStripePlans.php
@@ -56,7 +56,7 @@ public function handle()
56
57
protected function getProductId()
58
{
59
- return Spark::$details['product_id']
+ return Spark::$details['stripe_product_id']
60
?? strtolower(str_replace(' ', '-', Spark::$details['product']));
61
}
62
@@ -75,7 +75,7 @@ protected function createProduct()
75
$this->line('Stripe product ' . $id . ' already exists');
76
} catch (\Exception $e) {
77
Stripe\Product::create([
78
- 'id' => $id,
+ 'id' => $this->getProductId().'-'.$id,
79
'name' => Spark::$details['product'],
80
'statement_descriptor' => Spark::$details['vendor'],
81
'unit_label' => 'JobAds',
0 commit comments