#angel-payment-tax
1 messages · Page 1 of 1 (latest)
angel-payment-tax
@drifting dock there isn't really a way to do this today. PaymentIntent would have the total amount inclusive of tax that you calculated but there's no direct "link" between the two
You also mention Checkout Session in your code so I'm also quite confused by the question as Checkout doesn't work with the Tax Calculations API, it does tax calculation automatically for you already
oh ok so how do I automate tax then? while testing, It doesn't calculate taxes for me at checkout
Using Checkout Sessions?
yes
Can you share an example session ID?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You sample snippet above does not appear to set automatic_tax[enabled]=true so you should add that, in addition to ensuring you've registered for the relevant jurisdiction
over here
oh ok sorry
np
so i automated it now but it seems to just calculate 0$ for what ever address is inputed
Can you complete the checkout payment and share the session ID here?
Have you set up tag registrations for those locations, and set up tax behaviour for the products youre using?
taking a look
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You need to set those up for tax to be calculated for a given customer location
oh ok got it .
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah, you're also using inline price_data and not indicating any tax_behavior, and it looks like you havent set a default in your settings:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-tax_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Its telling me General - Electronically Supplied Services is 0% tax rate for California but I'm selling products not services
sorry nvm
thanks for the help
NP, all set now?
yes thank you