so i had my payment livewire componenet working fine, but i wanted to add automatic tax calculation,
as the documentation says to add the :
public function boot()
{
Cashier::calculateTaxes();
}
in the AppServiceProvider.
and adding
'tax_behavior' => 'exclusive',
//like this
$price_id = $stripe->prices->create(
[
'product' => $product_id->id,
'unit_amount' => $pushedOrder->price * 100,
'currency' => 'eur',
'tax_behavior' => 'exclusive',
]
);
$user->tabPrice($price_id->id, 1);
to my prices.
but when i want to invoice the user doingthis :
$stripeInvoice = $user->invoice();
the $stripeInvoice object is empty, when i want to access the invoice id to store it , it says cannot proprety id on bool ?
i dont undrestand what m i missing here