Sander van Hooft
Sander van Hooft
Hi @tobischulz , Thanks for the extensive report. @ciungulete can you figure out what happened here?
@ciungulete can you reproduce this issue?
@ciungulete Have you tried running Pint on this?
How about this? ```php $item = new \Laravel\Cashier\Charge\ChargeItemBuilder($user, $orderable); ```
Would be even cooler to do something like this and fill everything automatically: ```php class ChargeItemBuilder { // ... public static function forChargeable(Chargeable $chargeable, Model $billable) { $result = new...
For clarity, this would allow you to do stuff like ```php $itemA = ChargeItemBuilder::forChargeable($chargeableA, $billable)->make(); $itemB = ChargeItemBuilder::forChargeable($chargeableB, $billable) ->taxPercentage(5.5) // overrides allowed ->description('Some other description') // overrides allowed ->quantity(3)...
Thanks @divdax . This is going to involve several steps, need to be careful to not break any existing installations. First impressions: 1. Split `InteractsWithOrderItems` into the following interfaces and...
We have put the first steps towards this on our backlog 🤞
Hi @DirkvanBruxvoort , Can you elaborate on the use case a bit? I'll also need some matching tests for a full review.
Hi @siegerhansma , Thank you for reporting. Can you share a code sample so we can reproduce the issue?