#slava_api

1 messages ยท Page 1 of 1 (latest)

onyx pastureBOT
#

๐Ÿ‘‹ 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.

inner condor
#

I mean why Stripe does NOT share this API?

merry abyss
#

hello! I'm not clear on what you mean "share this API"? Can you explain with an example pls?

inner condor
#

I would like something like
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const customerCurrency= await stripe.checkout.getCustomerCurrecy()

merry abyss
#

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?

inner condor
#

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...

merry abyss
#

gotcha, thanks for confirming. There's no API like that right now that I'm aware of.

inner condor
#

I know that there is no such API. I mean that it is probably not a huge task to offer it ๐Ÿ™‚

merry abyss
#

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

inner condor
merry abyss
#

that's ~slightly different, I think that person is asking "how do you do this" and Adaptive Pricing didn't exist in Sept 2022 IIRC

#

but good flag regardless!