Tax calculation with Laravel Cashier for Stripe
Dealing with Tax calculation on checkout pages always makes me sweat, especially EU Taxes. Luckily, Stripe and Laravel Cashier, in recent releases, have simplified it.
You only need to add calculateTaxes
method in your AppServiceProvider
, and it will automate the tax collection and calculation using Stripe Tax service.
1// App\Providers\AppServiceProvider.php2 3use Laravel\Cashier\Cashier;4 5public function boot ()6{7 Cashier::calculateTaxes();8}
Stripe's payment page starts collecting and calculating taxes from your customers.
