#moritz_confirm-redirect
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256349217526648903
đ Have more to share? Add details, code, screenshots, videos, etc. below.
I think paypal requires it because you're redirected away from the checkout page. it's so the customer returns to your site after payment
For applepay and google pay, it's not required afaik
all right, that helps me a bit. then I'll just throw Paypal out for now, it wouldn't be bad.
He wants me to set "redirect": "if_required", where do I do that?
Hm not sure if you can do this with confirmation tokens actually
Checking
Assuming you're doing it with confirmation tokens because you have to finalize on the server?
That's a hard requirement?
Because doesn't look like confirmation tokens support redirect if_required unfortunately: https://docs.stripe.com/js/confirmation_tokens/create_confirmation_token
I have just seen that the error does not come from createConfirmationToken, but from confirmPayment, where I can set "if_required". that should solve it?
What do you mean by "That's a hard requirement?" , is there a other way?
ah ok
yep you set it on confirmpayment
I thought you were saying it was happening when creating the confirmation token
yes, that's what I thought for a moment
i removed the url there, so i thought that was where the error was coming from.
moritz_confirm-redirect
works!
Thanks :)