Skip to content

Commit

Permalink
make the key for the product_id clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Oct 15, 2019
1 parent 3cbfe13 commit f9ce6d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/CreateStripePlans.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function handle()

protected function getProductId()
{
return Spark::$details['product_id']
return Spark::$details['stripe_product_id']
?? strtolower(str_replace(' ', '-', Spark::$details['product']));
}

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

0 comments on commit f9ce6d7

Please # to comment.