#kevinx-checkout-redirect

1 messages · Page 1 of 1 (latest)

outer shardBOT
mossy canyon
#

I'm testing with a localhost and assume the domain difference caused the redirect URL from API to fail?

#

res.redirect(303, session.url); <--- is this the issue?

obsidian igloo
#

@mossy canyon the problem usually happens when you redirect server-side like in your picture but your client-side code did a "fetch"

#

kevinx-checkout-redirect

mossy canyon
#

It is a post call

#

not fetch

obsidian igloo
#

it's the same

#

you need to do a full page submit, not a fetch/get/post

#

if you do a post, you need to return the url back and redirect client-side in Javascript instead

mossy canyon
#

Thanks, by full page submit, you mean using Form action with button type submit?

#

instead of button click API call?

obsidian igloo
#

you need a full page submission like a form submission

#

it's not really about the button per se, but yes

mossy canyon
#

Thank you very much