Stubs for products / recurring products and subscription price
This commit is contained in:
parent
b40751a2b9
commit
b3863581ae
1 changed files with 14 additions and 0 deletions
|
|
@ -263,5 +263,19 @@ class SubscriptionService
|
|||
//scan for any notification we are required to send
|
||||
}
|
||||
|
||||
public function products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get();
|
||||
}
|
||||
|
||||
public function recurring_products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get();
|
||||
}
|
||||
|
||||
public function price()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue