#shouhu

1 messages · Page 1 of 1 (latest)

wintry spadeBOT
chrome crag
#

Hi there!

#

Can you share a little more context about how you integrate Stripe (Checkout Session, PaymentIntent, etc), and where you set the return URL?

low crown
#

Sure! I'm using the payment element with payment intents. I'm setting the return URL on the page where checkout is happening via document.referrer or window.location.href and pass some additional params. When confirming the payment I pass this return URL variable to the return_url property on confirmParams. This seems to be working well, except for this little 314-2 part in the URL for which I cannot tell where it's coming from

#

For context, the payment element is being used embedded in an iframe on another website.

chrome crag
#

Thanks! Can you share a PaymentIntent ID where you saw that issue?

low crown
#

Of course 🙂 pi_3LzcQaDRxoS4foaB0GruIO9y

chrome crag
#

So if you see a different URL, this might be due to a server configuration on your end.

low crown
#

This is what I thought was most likely as well but just wanted to make sure I wasn't missing anything. Thanks anyway though!