#moritz_confirm-redirect

1 messages ¡ Page 1 of 1 (latest)

cobalt grottoBOT
#

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

stable notch
#

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

trim hollow
#

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?

stable notch
#

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?

trim hollow
#

yea

#

confirmationToken->create payment intent->confirm payment

stable notch
#

That's a hard requirement?

trim hollow
#

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?

cobalt grottoBOT
stable notch
#

ah ok

#

yep you set it on confirmpayment

#

I thought you were saying it was happening when creating the confirmation token

trim hollow
#

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.

surreal oar
#

moritz_confirm-redirect

trim hollow
#

works!
Thanks :)