Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.x] Apply prorate and invoice_now for cancelNow #975

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

driesvints
Copy link
Member

At the moment cancelNow will immediately cancel the subscription and prevent any new invoices. These changes allow for two things:

Send a final invoice for any remaining used resources:

$subscription->cancelNowAndInvoice();

Prorate any remaining time to the customer's balance:

$subscription->prorate()->cancelNow();

Closes #974

@taylorotwell taylorotwell merged commit 0f43bdf into 12.x Jul 21, 2020
@driesvints driesvints deleted the prorate-cancel-now branch July 21, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow cancelNow() to prorate
2 participants