#frusc_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/1226820347479855134
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Well the /pay endpoint doesn't really support 3D Secure, instead you should confirm the invoice.payment_intent on the frontend.
Hi thanks!
Can you confirm that the right flow should be:
1 - create draft invoice
2 - finalize the invoice
3 - pass the payment intent to the front-end
4 - complete the payment with this method: stripe.confirmPayment (front-end side)
that's what's in that guide, yes.
Thanks again, we will try to update the code to have soon as possible a test in production
Hi @spring shard we're not using the stripe.js with element but we are using react-stripe-js front-end side. Is there any other solution in this case?
sure, same thing really. What specific difficulty are you running into?
like react-stripe-js is just a wrapper around stripe.js/Elements, not a separate thing
Ok, we are using stripe.paymentIntents.confirm server-side instead of using stripe.confirmPayment on client. is it that correct?
not really since how will you handle 3D Secure if it's all on the backend?
We try to use the next_action field, but it's not working
well you're not supposed to use it really, you're supposed to confirm the PaymentIntent on the frontend and it does it for you
but hard to say without a lot more context on what your actual code looks like and does.
like I said, https://docs.stripe.com/invoicing/integration?method=elements#accept-invoice-payment is the canonical/supported approach here.
we cannot use the stripe.confirmPaymeny because we don't have element but we have the payment intent. We are trying to use stripe.confirmCardPayment and seems it's working
you can use it without an Element
https://docs.stripe.com/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached just call confirmCardPayment(clientSecret)