#frusc_api

1 messages ¡ Page 1 of 1 (latest)

crisp tangleBOT
#

👋 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.

spare spearBOT
spring shard
#

Hi! Well the /pay endpoint doesn't really support 3D Secure, instead you should confirm the invoice.payment_intent on the frontend.

cobalt robin
#

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)

spring shard
#

that's what's in that guide, yes.

cobalt robin
#

Thanks again, we will try to update the code to have soon as possible a test in production

cobalt robin
#

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?

spring shard
#

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

cobalt robin
#

Ok, we are using stripe.paymentIntents.confirm server-side instead of using stripe.confirmPayment on client. is it that correct?

spring shard
#

not really since how will you handle 3D Secure if it's all on the backend?

cobalt robin
#

We try to use the next_action field, but it's not working

spring shard
#

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

cobalt robin
#

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

spring shard
#

you can use it without an Element