#desdenova_api

1 messages ¡ Page 1 of 1 (latest)

obsidian pineBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1265643011031961674

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

broken oxide
#

hi there!

#

looking into this

#

if you try a PaymentIntent with amount 60, does it work?

zealous mortar
#

let me try

#

i'm pretty sure it will work

#

because it worked with 50 before it just stopped working yesterday

#

probably because the exchange rate changed

broken oxide
#

probably because the exchange rate changed
ah yes possible

zealous mortar
#

yeah it works with 60

#

but that's not a solution..

broken oxide
#

the minimum aomunt might have changed because of the exchange rate as you said. I don't have a solution except changing the amount or the currency.

zealous mortar
broken oxide
#

but the error message is pretty clear: Amount must convert to at least 200 fils.

zealous mortar
#
    amount: 50,
    currency: 'eur',
    metadata: { sessionId, email, name },
    setup_future_usage: "off_session",
    // In the latest version of the API, specifying the `automatic_payment_methods` parameter is optional because Stripe enables its functionality by default.
    automatic_payment_methods: {
      enabled: true,
    },
  });```
#

i obviously specify currency EUR and 50 amount

#

why do i have to do the conversion?

broken oxide
#

you don't have to do any conversion, Stripe is doing it for you. but because the exchange rate changed, the 0.50 EUR is now less than 200 fils, so it fails.

zealous mortar
#

i understand why it fails, i explained it myself in the beginning

#

but this is a bug

#

if the docs say 50 cents is minimum if currency is eur then this should not fail

broken oxide
zealous mortar
#

i will