Hi there, I'm trying to collect VAT (to
Hi there, I'm trying to collect VAT (to be added to the price I set in Autumn). On Stripe dashboard, I configured the VAT collection and checked all the product prices have "no" under "include VAT on the price". So I think that Stripe actually knows that the price is VAT-excluded.
However, I can't figure out how to require a billing address in the checkout page (so Stripe is able to calculate VAT).
I didn't find anything in Stripe settings to always set the billing address to be required in the checkout pages, so I tried adding the "checkoutSessionParams" to the checkout autumn function with the below values:
await checkout({
productId,
dialog: CheckoutDialog,
checkoutSessionParams: {
automatic_tax: { enabled: true },
billing_address_collection: "required",
tax_id_collection: { enabled: true },
},
});
I'm using Convex component and I get an error saying that the checkoutSessionParams object contains not allowd values:
11/6/2025, 5:53:33 PM [CONVEX A(autumn:checkout)] ArgumentValidationError: Object contains extra field
Path: .checkoutSessionParams
Object: {automatic_tax: {enabled: true}, billing_address_collection: "required", tax_id_collection: {enabled: true}}
Validator: v.object({})
Any advices? This is really important for me otherwise do not have the possibility to calculate VAT on my prices.
Many thanks!
However, I can't figure out how to require a billing address in the checkout page (so Stripe is able to calculate VAT).
I didn't find anything in Stripe settings to always set the billing address to be required in the checkout pages, so I tried adding the "checkoutSessionParams" to the checkout autumn function with the below values:
await checkout({
productId,
dialog: CheckoutDialog,
checkoutSessionParams: {
automatic_tax: { enabled: true },
billing_address_collection: "required",
tax_id_collection: { enabled: true },
},
});
I'm using Convex component and I get an error saying that the checkoutSessionParams object contains not allowd values:
11/6/2025, 5:53:33 PM [CONVEX A(autumn:checkout)] ArgumentValidationError: Object contains extra field
automatic_tax that is not in the validator.Path: .checkoutSessionParams
Object: {automatic_tax: {enabled: true}, billing_address_collection: "required", tax_id_collection: {enabled: true}}
Validator: v.object({})
Any advices? This is really important for me otherwise do not have the possibility to calculate VAT on my prices.
Many thanks!
