#skoshkarli-payment-intent
1 messages ยท Page 1 of 1 (latest)
๐ Happy to help
confirmCardPayment is only for card and doesn't support other payment methods including Apple Pay
The redirection depends on the payment method itself. For example, user might be asked to perform redirect 3DS.
However, you can set redirect='if_required', so that redirection will only be done when it's necessary.
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
Yup! Redirection can potentially happen on card as well
alright. thank you for the info!
No problem! Happy to help ๐
sorry i have a follow up question
it says the redirect happens only on successfull confirmation
what happens when the user is not able to pass through the security check?
can you share you mean by security check?
redirect 3DS
If customer fails to authenticate 3DS, user will be brought back to Checkout Session page to re-enter other card details again.
Why do you use Stripe Elements with Checkout page?
Stripe Elements are for embedded payment inside your website, instead of hosted payment page like Checkout Session
it is inside my website
i am not using your Checkout session
Sorry! My bad totally! I mixed up the conversations
If the customer fails to authenticate 3DS using Elements, they will be redirected back to the return_url set up in the stripe.confirmPayment
but it says in the docs that the return_url is only for successfull payments
It said "complete" payment [0]. "complete" means finishing the payment process, but doesn't mean that the payment is successfully paid.
i see
so how can i tell whether the process was successfull or not when it redirects
after the payment is completed (be it successful or failed), customer will be redirect to the URL provided. you will then retrieve the payment intent status with the client secret embedded in the return URL. here's the detailed doc: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements&html-or-react=react#web-submit-payment