#donklitschko_api
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/1219641266057252975
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ can you tell me more about the solution you're trying to build? It sounds a bit unusual offhand to want to use our Card Element, that is designed to be customer facing, in a flow where you're processing MOTO payments, which implies the customer isn't on your site.
Hi Toby, we need to use hosted fields to enter the card information and the card element was the only hosted field our developer could find
Gotcha, so where are you at in the process of implementing that? What problems/errors are you running into?
Have you already discussed your use case with our Support team and been given access to process MOTO transactions?
Yes we have access and have access to the documentation on this link: https://docs.stripe.com/payments/payment-intents/moto but we aren't sure how to implement the front-end as the doc only references server-side code
That's correct, MOTO requires server-side confirmation, because it's intended for use when the customer isn't on your site so client-side confirmation isn't needed.
I believe you'll need to create a Payment Method client-side:
https://docs.stripe.com/js/payment_methods/create_payment_method
and then use that to process the MOTO payment:
https://docs.stripe.com/payments/payment-intents/moto#:~:text=supply the ID,parameter
Can we use that with hosted fields?
Yes, the card field in that function accepts an instance of our Card Element
Thanks for the help, I'll let you know if we require any further assistance!