#slava_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260623662902415426
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
I mean why Stripe does NOT share this API?
hello! I'm not clear on what you mean "share this API"? Can you explain with an example pls?
I would like something like
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const customerCurrency= await stripe.checkout.getCustomerCurrecy()
ahh I see what you mean, you mean I am Customer_123, I arrive on your website and instead of Pricing Table doing the adaptive pricing, you want a Stripe API that tells you that info?
Yes, I want it because you have it anyway when you show adaptive prices in checkout sessions. So you could make my life much easier if I did not have to to this complex logic that you already have done. As otherwise I need to look for API to detect countries by IP, create country to currency table...
gotcha, thanks for confirming. There's no API like that right now that I'm aware of.
I know that there is no such API. I mean that it is probably not a huge task to offer it ๐
yep but building/launching new API isn't just work, many more things go into it. I haven't heard of this use-case before but I'll flag it internally
there is some stackoverflow question from some other guy, I found https://stackoverflow.com/questions/73653293/stripe-payment-intent-how-to-tell-customers-country-and-currency