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

Anchoring a monthly billing cycle #66

Open
jkaan opened this issue Sep 24, 2019 · 5 comments
Open

Anchoring a monthly billing cycle #66

jkaan opened this issue Sep 24, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@jkaan
Copy link

jkaan commented Sep 24, 2019

Hi there!

I have a question about a particular requirement that I have and I'm struggling on how to implement it :).

What I would like is it the subscriptions always start at the first of the month. Doing that means that I would also like to charge the user for what is remaining of that month. Let's say that I start a subscription at the middle of the month of a 20 euro subscription. I would like to start the subscription at the first of the next month and I would like to charge 10 euros now.

Is that possible?

Thanks a lot!

@sandervanhooft
Copy link
Collaborator

sandervanhooft commented Sep 26, 2019

This is called "anchoring the billing cycle".

This is not supported yet. There's a few things that we'd need for that:

  • To do: Modify the subscription interval calculation to enable a fixed day (n) of the month, see issue Interval calculation #41
  • Available: Reset the payment cycle and reimburse the amount overpaid. You can use this subscription method.
  • Available: Process due OrderItems only on the nth day of the month (schedule cashier::run on first day of the month only). Edit: this is not really necessary once the subscription interval calculation has been modified. If you run every fifteen minutes, the OrderItems will be processed into an invoice on the anchored day.

@sandervanhooft sandervanhooft changed the title Start subscription at beginning of month and charge remainder for first payment Anchoring the billing cycle Sep 26, 2019
@sandervanhooft sandervanhooft changed the title Anchoring the billing cycle Anchoring a monthly billing cycle Sep 26, 2019
@robindirksen1
Copy link
Contributor

To do: Modify the subscription interval calculation to enable a fixed day (n) of the month, see issue #44

This is issue #41 instead of PR #44, right?

@sandervanhooft
Copy link
Collaborator

Correct, updated in original post.

@sandervanhooft sandervanhooft added the enhancement New feature or request label Oct 2, 2019
@lexdewilligen
Copy link
Contributor

@sandervanhooft are you currently working on this feature? Or is anyone else working on this feature?

@sandervanhooft
Copy link
Collaborator

It's not on the top of my list to be honest. Will launch Spark Mollie first. Feel free to create a PR.

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

No branches or pull requests

4 participants