Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Question about billing cycle #118

Closed
jamie2323 opened this issue Nov 28, 2019 · 1 comment
Closed

Question about billing cycle #118

jamie2323 opened this issue Nov 28, 2019 · 1 comment

Comments

@jamie2323
Copy link

Hi,

Great package love it!

Quick question, I would like to bill a fixed amount every x of the month. The amount is
always the same even if the user has subscribed for example 10 days ago.

I already saw I can change the nextPaymentAt but how do I modify the cycle_started_at to be in the future?

Right now I have this:

 $subscription = $user
                ->newSubscription($name, $fields->plan)
                ->nextPaymentAt(Subscription::nextPaymentDate())
                ->quantity($fields->quantity)
                ->create();

Is it possible with this package?

Thanks for your work!

@sandervanhooft
Copy link
Contributor

Thanks @jamie2323 !

What you're looking for is called "anchoring the billing cycle".

It's not supported yet, see #66.

I'll be keeping that ticket as a reference and close this for now. Let me know if it should be reopened.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants