#theofenol_connect-elements-errors

1 messages ยท Page 1 of 1 (latest)

warped bobcatBOT
#

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

tough lodge
#

Hi, Snufkin. Please let me know if you'd like a more detailed description of what I am actually doing.

bitter egret
tough lodge
#

There is no request, I might have created my ticket in the wrong section...

#

I think I should've selected Payments instead of API

bitter egret
#

Where do you see this error then?

tough lodge
#

On web, in my browser's Developer Tools window

bitter egret
#

And it shows up in response to what action you take?

tough lodge
#

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

bitter egret
#

paymentElement.value.mount('#payment-element');

This code is very confusing

tough lodge
#

you can ignore that, that is Nuxt.js UI related code

bitter egret
#

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?

tough lodge
#

Card, Apple Pay, Google Pay and possibly some other

bitter egret
#

It appears you are creating this Invoice on an Express account

tough lodge
#

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

bitter egret
#

And this seems to specifically occur when you set amounts of 20 RON and lower?

tough lodge
#

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.

bitter egret
tough lodge
#

On this doc, it says 2.00 RON

bitter egret
#

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

tough lodge
#

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

bitter egret
#

Ah, gotcha

tough lodge
#

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

bitter egret
#

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.

tough lodge
#

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!

bitter egret
#

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

tough lodge
#

sounds great! thanks!

bitter egret
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚