#theofenol_connect-elements-errors
1 messages ยท Page 1 of 1 (latest)
๐ 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/1292883280219340831
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, Snufkin. Please let me know if you'd like a more detailed description of what I am actually doing.
Actually let's start with the request ID for the API request that throws this error
It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
There is no request, I might have created my ticket in the wrong section...
I think I should've selected Payments instead of API
Where do you see this error then?
On web, in my browser's Developer Tools window
And it shows up in response to what action you take?
const amount = totalValue + allFee;
const options = {
mode: 'payment',
currency: 'ron',
amount: amount
};
stripeElements.value = stripe.value.elements(options);
paymentElement.value = stripeElements.value.create('payment');
paymentElement.value.mount('#payment-element');
the above lines would be my triggering code
for example, if amount is 25 RON, it is working fine
but for 20 RON, the error from the picture appears
paymentElement.value.mount('#payment-element');
This code is very confusing
you can ignore that, that is Nuxt.js UI related code
But I think that's just me. I built my entire test itnegration using Nuxt and I don't see specifying value for an SFC property but that could be just me
What payment methods do you have enabled on the account?
Card, Apple Pay, Google Pay and possibly some other
It appears you are creating this Invoice on an Express account
yes
So, I did the exact same flow using card-element instead of payment-element
and everything was ok
but then I wanted to add support for Apple and Google Pay
and i followed the steps from here https://docs.stripe.com/payments/payment-element/migration
And this seems to specifically occur when you set amounts of 20 RON and lower?
Yes, you are right. I am using connected accounts - my platform is the master account and event organizers are my connected accounts.
Not sure if 20 RON is the exact threshold value, but for 20 RON I can see the error
for 25 RON there is no error.
20 RON is the minimum amount but we should support it, based on this doc
https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts
Okay but the amount property is always in the lowest possible denomination. Like for USD it shows 0.50 but the amount I have to pass in 50
Yeah, yeah - i know, it is in cents
RON and USD have the same denominations
so I am multiplying by 100
for 20 RON, I am passing actually 2000
Ah, gotcha
or 2193 to be more precise, because i am also adding app fees
pi_3Q7JdmQ5cKJaskCk03EzC5Sk
this would be the payment intent of one of the cases which show the error
Thanks for the reference
Hmmm...okay the payment intent accepts the cards payment method type (that includes Apple/Google pay) ...
Oddly enough, passing 2000 RON works in my non-deferred test integration (where I create the Payment Intent first).
I'm going to test in my deferred intent integration. This will tell me if it's the amount/currency or something with the Connected Account.
Mh, anyway, this is more like a totally edge case for me.
So, don't actually insist on this... I was just curious
I doubt there will ever be an event ticket with such a low price
So, for now I can handle this on my side with an enforced threshold.
Thanks for the help!
Okay I was successful in all situations so I think the issue might be with the Express Account. I would recommend you verify that they can process Card payments if you want to dig further on this
sounds great! thanks!
Happy to shed what ๐ก I can ๐