#MathewY-checkout-automatic-tax
1 messages · Page 1 of 1 (latest)
👋 Happy to help
Can you share the request ID (req_xxx)? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sure, I believe this is it req_QZBmDF5GP3HrlJ
Thanks for sharing
It looks like this request did not include the price [0] or price_data [1] as required for automatic tax: https://stripe.com/docs/payments/checkout/taxes
[0] https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price
[1] https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Oh ok, I see, so price is something that's setup within Stripe that has an ID such as price_H5ggYwtDq4fbrJ. Is there any way to have automatic tax collection with the other way where I just pass in an amount? I am passing in all of the product data such as product name, title, amount, image all in the API rather than storing them with Stripe
Similarly I was going to ask a follow up question if I could just pass in a discount amount/percentage without having to separately make the discount on Stripe's end with a separate API
If we have to do multiple requests to Stripe that slows down the application