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

[13.x] Create invoices separately #1409

Merged
merged 1 commit into from
Jul 29, 2022
Merged

[13.x] Create invoices separately #1409

merged 1 commit into from
Jul 29, 2022

Conversation

driesvints
Copy link
Member

This PR adds some new functionality to Cashier to allow to create invoices separately without sending them (draft state) as well as a few methods to add new items to invoices directly.

// Creates a new empty draft invoice...
$invoice = $user->createInvoice();

// Add a new price line item to the invoice...
$invoice->tabPrice('price_xxx', 5);

Closes #1397

@taylorotwell taylorotwell merged commit 134dc4a into 13.x Jul 29, 2022
@taylorotwell taylorotwell deleted the improve-invoices branch July 29, 2022 12: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.

Improvement to the Cashier invoice
2 participants