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.

// App\Providers\AppServiceProvider.php

use Laravel\Cashier\Cashier;

public function boot ()

Stripe's payment page starts collecting and calculating taxes from your customers.