Expected behaviour:
When adding the parameter dynamic_tax_rate or tax_rate to the lineItems array, I expect the ‘create session’ post request to stripe to contain these parameters.
Reproduce:
-
Set a lineItems array, like so:
{{[{price: "price_EXISTINGID", quantity: 1, tax_rates: ["txr_EXISTING_TAX_ID"]}]}}
-
Use that array in the ‘Create Checkout Session’ like so:
-
Open server action in browser with outputs on to double check that the lineItems are set properly
you can see the tax_rates being set -
Start the checkout on the page, which loads successfully. Then go to the logs in stripe. There you see it’s missing in the Request POST body
Community Page
Last updated:
Last updated: