#sp4ce-monk3y_code
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/1501992865683738727
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello 👋
The confirmation function requires that the Elements instance that creates and mounts the PaymentElement be in scope and provided when calling the confirm method. I'm not sure you can hoist the confirmation function out of the component and retain that connection.
I've been building a Stripe integration examples site and I was trying to hoist functions out of components but I ran into a lot of failures. I'm using a Vue-based framework with built-in JS router functionality as well.
I wound up keeping the confirmation logic inside the component that creates/mounts the Payment Element
ClientActions run on the client outside of react so I don’t think it’s possible. Anyway I appreciate your response! Thank you