Paypal redirect after payment


The redirect after a finished paypal payment does not work for me. It’s always 404 (

I am using the paypal Sandbox mode. Commerce is in Test Mode. Paypal Payment Method is in Test Mode as well. Website Payment Preferences; in Paypal Settings; is set to Auto Return “On” (modx cloud domain)

Is this problem Paypal Sandbox related?

Are you saying that the url it sends you back to, after authorizing the payment, is on rather than your own domain?

Yes exactly

I’ve never seen that type of behavior before.

Try disabling auto return in the paypal settings - Commerce will already provide the proper return url for each transaction and that paypal function is meant for.different use cases.

If that doesn’t help it would be worthwhile looking at how your site and context(s) are configured, especially if your site is multi context. Commerce uses the site url for the return url.

1 Like

Context setting was the problem. Thank You!

1 Like

I am having the same problem. How do I figure out what/where is the problem?? The site context is the default web context…I think. I have two unused contexts but the whole store is in the web context and so far as I know I do not have any return URL configured in PayPal, I have the PP settings configured the same way as Steve.
Thank you, Tom
PP Sandbox credentials installed in the PP gateway.
P.S. I don’t get a 404, it just never redirects, it just sits on the PP credit card page and I can’t log in with a PP ID either, returning to the merchant site nullifies the PP payment…So my problem is a bit different than Steve’s, Commerce is never redirecting back to the checkout thank you page…HELPPPPPP!!! :slight_smile: :slight_smile:

If sandbox does not redirect back, how can I know that live PP will redirect back??
I hope there is an easy fix!! :slight_smile: :slight_smile:
Thank you, Tom