Stripe in Blender Studio #93018

Merged
Anna Sirota merged 9 commits from studio-to-stripe into main 2024-06-17 17:39:10 +02:00
Showing only changes of commit cc6803ce32 - Show all commits

View File

@ -181,8 +181,10 @@ class Taxable:
is_business = False
if user and user.is_authenticated:
customer = user.customer
country_code = customer.billing_address.country or country_code
is_business = bool(customer.vat_number)
billing_address = customer.billing_address
country_code = billing_address.country or country_code
vat_number = billing_address.vat_number
is_business = bool(vat_number)
tax_type, tax_rate = ProductType(product_type).get_tax(
buyer_country_code=country_code, is_business=is_business
)