Hello,
I have added this line in the app service provider.
Cashier::calculateTaxes();
Such a way, I don't have to handle taxes, they are automatically calculated, it works fine. I have also customized the customer datas, it works fine too. For this, I have overloaded the fields, for example with stripeName().
I'm using checkout to display the view for the customer to pay : he can type his name and credit card informations.
There is also a checkbox the customer has to check if he is a professionnal : he can type his company's name and the tax identification number.
The application is only for professionals. How is it possible to automatically check this box and fill the fields with values from the database (the customer will have to save his tax identification number in the application, and his company's name too) ?
I think that it's possible to execute $user->addTaxId('eu_vat', $user->tax_id);, but it's only the tax id, I don't have the company's name.
Furthermore do I have to handle eu_vat locally or is it a way so that Stripe guess this information from the customer address ?
Thanks for your help.
V