#venu_error

1 messages ¡ Page 1 of 1 (latest)

tiny wolfBOT
#

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

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

ashen onyxBOT
old moon
#

What guide are you following exactly ?

austere imp
#

Sorry.. just clear I'm using latest version @stripe/stripe-js:3.3.0 and I have following same docs and implementing payment-element for add card in ionic framework.

old moon
#

Cool and what is the issue your are facing exactly now ?

austere imp
#

getting error when call stripe.ConfirmPayment method --Error handling card action: IntegrationError: Invalid value for stripe.confirmPayment(): elements should have a mounted Payment Element or Express Checkout Element.

old moon
#

Ionic is a mobile framework

#

while Stripe Element is a web framework

#

Stripe doesn't have an official library for Ionic

austere imp
#

@old moon I'll check community library.. can you please review code

burnt moat
#

I think you're passing a new Elements instance to confirmPayment as opposed to the one you initialised earlier which actually has something mounted to it

austere imp
#

How to pass mount element (this.paymentElements = elements.create("payment", paymentElementOptions);) instead of new element instance to confirmPayment??