Skip to content

Commit f9ce6d7

Browse files
committed
make the key for the product_id clearer
1 parent 3cbfe13 commit f9ce6d7

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
@@ -56,7 +56,7 @@ public function handle()
5656

5757
protected function getProductId()
5858
{
59-
return Spark::$details['product_id']
59+
return Spark::$details['stripe_product_id']
6060
?? strtolower(str_replace(' ', '-', Spark::$details['product']));
6161
}
6262

@@ -75,7 +75,7 @@ protected function createProduct()
7575
$this->line('Stripe product ' . $id . ' already exists');
7676
} catch (\Exception $e) {
7777
Stripe\Product::create([
78-
'id' => $id,
78+
'id' => $this->getProductId().'-'.$id,
7979
'name' => Spark::$details['product'],
8080
'statement_descriptor' => Spark::$details['vendor'],
8181
'unit_label' => 'JobAds',

0 commit comments

Comments
 (0)