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] Add invoicePrice and tabPrice methods #1213

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Jun 28, 2021

Adds an invoicePrice and tabPrice method that works with a given Price ID. This is a useful alternative to single charge invoices which cannot be used in combination with automatic tax calculation.

// Invoice for a single price...
$invoice = $user->invoicePrice('price_tshirt', 5);

// Invoice for a couple of prices
$user->tabPrice('price_tshirt', 5);
$user->tabPrice('price_mug', 5);
$invoice = $user->invoice();

Closes #1211

@driesvints driesvints changed the title [13.x] Add invoicePrice method [13.x] Add invoicePrice and tabPrice methods Jun 28, 2021
@taylorotwell taylorotwell merged commit 8d323fd into 13.x Jun 28, 2021
@taylorotwell taylorotwell deleted the invoice-price branch June 28, 2021 13:51
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.

Add invoicePrice method
2 participants