#juan-vico_api

1 messages ¡ Page 1 of 1 (latest)

vital birchBOT
#

👋 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/1257257433986760786

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

flat tangle
#

I'm using stripe package.json version "stripe": "^15.12.0",

coarse quiver
#

Hi, let me help you with this.

#

Where did you find this API exactly?

vital birchBOT
flat tangle
#

Thanks Vanya - I asked customer support via email, and they sent me this code:

const stripe = require('stripe')('YOUR_STRIPE_SECRET_KEY'); const getExchangeRate = async (currency) => { try { const exchangeRates = await stripe.exchangeRates.list({ currency: currency }); const rate = exchangeRates.data[0].rates['usd']; console.log(Exchange rate for ${currency} to USD: ${rate}); return rate; } catch (error) { console.error(error.message); } } getExchangeRate('mxn');

#

but still didn't work

#

I found that API navigating through the stripe package

prime marlin
#

Hey! Taking over for my colleague. The API you are referring to seems not public, it's a private/beta feature.