Skip to content

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

3 participants