#jg_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/1499060147090358354
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there ๐ taking a look into this
yeah I'm afraid there's no configuration option to disallow redirects entirely within the ECE
you're correct that the scenarios where this would happen are typically with non-card payment methods (instant debits, SEPA), but even if you were to restrict this to cards-only, there's still the possibility that 3DS could be required, which would trigger a redirect
if you need to completely avoid the possibility of a redirect, you'd need to disable Link entirely
I appreciate the confirmation! Looking at the docs for the confirmPayment method, is it true that you can't know if the payment was successful or not without fetching the paymentIntent after redirect?
in the context of a redirect-based payment method, yes - we'd recommend listening for PaymentIntent-related webhooks to confirm the payment's success:
https://docs.stripe.com/payments/payment-intents/verifying-status#webhooks
but in the context of a non-redirect-based payment method, confirmPayment will resolve with a payment intent object if the payment succeeds:
https://docs.stripe.com/js/payment_intents/confirm_payment
Cool, I appreciate you clarifying that for me! I think that answers all my questions. Seems like there is no getting around adding some more robust backend error persistence to support the wallet options
any time! we're here if you have further questions