You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Renew of any subscription does not work. it renews a period starting from starts at not ends at.
which is wrong, if you want to renew existing Subscription the new period added should start from ends at and adds the Interval.
in your code
'
protected function calculate()
{
$method = $this->getMethod();
$start = clone($this->start);
$this->end = $start->$method($this->interval_count);
}
``
this should be in renewal case
protected function calculate()
{
$method = $this->getMethod();
$start = clone($this->end);
$this->end = $start->$method($this->interval_count);
}
so the new period starts from where the last subscription ends.
Good day
The text was updated successfully, but these errors were encountered:
The Renew of any subscription does not work. it renews a period starting from starts at not ends at.
which is wrong, if you want to renew existing Subscription the new period added should start from ends at and adds the Interval.
in your code
'
protected function calculate()
{
$method = $this->getMethod();
$start = clone($this->start);
$this->end = $start->$method($this->interval_count);
}
``
this should be in renewal case
protected function calculate()
{
$method = $this->getMethod();
$start = clone($this->end);
$this->end = $start->$method($this->interval_count);
}
so the new period starts from where the last subscription ends.
Good day
The text was updated successfully, but these errors were encountered: