#alexmannco-checkout-tax
1 messages ยท Page 1 of 1 (latest)
Hello
what's the problem you're hitting here?
Can you share the request id from that?
https://stripe.com/docs/api/request_ids
Its when i try to create the checkout
that i get that error
We use 'line_items' for the checkout items
req_UU1Tgn7pXy8ZhG
It's because you're not using Prices and setting the amount directly, which is deprecated. If you use price_data Checkout will automatically create a Price for you which should work with automatic tax: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So what you are saying is that what we are using is deprecated right ?
Yep! like @spare pagoda said โ๏ธ -- one extra note is that while tax_behavior is marked as optional, you will need to set it when using automatic taxes:
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.
Setting the amount in that way (directly via line items) is deprecated: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay so i have to switch to price_data
Or prices created separately via the api/dashboard, depending on your application needs
The thing is we have over 10,000,000 different product with different price
We cannot create product for each one or else we gonna full it
As far as i know, there are no limits on number of products or prices, but you can also keep track of which you've created and either reuse or create the price when using it the first time
or use price_data ๐
(but this is effectively doing the same thing, creating a new price object behind the scenes)
Okok its just a mess to switch to price_data since what i use now
I got another question since stripe checkout is creating new cards on the user account even if its the same card
we have to manually delete each card after the payment is done
Why is it now just updated and not create another card each time
an exemple :
req_EnrASs7Wda4c28
This is how Checkout works, currently. It is safe to ignore or detach the duplicates accord to your preferences, though.
that's fair, but that would be a lot of checkout sessions ๐
Not that much if i remember its 20-30
We got users that can pay over 300-400/month haha
Got one last question
Wanted to get Stripe identity on my account but it says "Stripe Identity cannot support your business at this time. However, we're always expanding our use cases and business types, so we'll reach out to you in the future when things change."
I think they mistaken my business type
Who should i contact about that
Definitely contact support about that: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
specifically asking about identity support for your business/region