mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
bug fixes for subscriptions
This commit is contained in:
parent
fbec084e9d
commit
8f91969c49
@ -127,7 +127,7 @@ class SubscriptionService
|
|||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->triggerWebhook($context);
|
$response = $this->triggerWebhook($context);
|
||||||
|
nlog($response);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,11 +269,23 @@ class SubscriptionService
|
|||||||
//scan for any notification we are required to send
|
//scan for any notification we are required to send
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the single charge products for the
|
||||||
|
* subscription
|
||||||
|
*
|
||||||
|
* @return ?Product Collection
|
||||||
|
*/
|
||||||
public function products()
|
public function products()
|
||||||
{
|
{
|
||||||
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->product_ids)))->get();
|
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->product_ids)))->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the recurring products for the
|
||||||
|
* subscription
|
||||||
|
*
|
||||||
|
* @return ?Product Collection
|
||||||
|
*/
|
||||||
public function recurring_products()
|
public function recurring_products()
|
||||||
{
|
{
|
||||||
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->recurring_product_ids)))->get();
|
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->recurring_product_ids)))->get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user