diff --git a/src/Concerns/ManagesInvoices.php b/src/Concerns/ManagesInvoices.php index 22162ddb..9cda0a9a 100644 --- a/src/Concerns/ManagesInvoices.php +++ b/src/Concerns/ManagesInvoices.php @@ -29,7 +29,9 @@ trait ManagesInvoices public function tab($description, $amount, array $options = []) { if ($this->isAutomaticTaxEnabled() && ! array_key_exists('price_data', $options)) { - throw new LogicException('When using automatic tax calculation, you need to define the "price_data" in the options.'); + throw new LogicException( + 'When using automatic tax calculation, you need to define the "price_data" in the options.' + ); } $this->assertCustomerExists(); diff --git a/src/Concerns/PerformsCharges.php b/src/Concerns/PerformsCharges.php index dc91c8d8..2cef7be5 100644 --- a/src/Concerns/PerformsCharges.php +++ b/src/Concerns/PerformsCharges.php @@ -4,7 +4,6 @@ use Laravel\Cashier\Checkout; use Laravel\Cashier\Payment; -use LogicException; use Stripe\Exception\InvalidRequestException as StripeInvalidRequestException; trait PerformsCharges @@ -153,10 +152,6 @@ public function checkout($items, array $sessionOptions = [], array $customerOpti */ public function checkoutCharge($amount, $name, $quantity = 1, array $sessionOptions = [], array $customerOptions = [], array $productData = []) { - if ($this->isAutomaticTaxEnabled()) { - throw new LogicException('For now, you cannot use checkout charges in combination with automatic tax calculation.'); - } - return $this->checkout([[ 'price_data' => [ 'currency' => $this->preferredCurrency(),