I’m running EE 2.1.1 with Structure 2.1.5.
I also use Membrr with OpenGateway. The payment gateway is PayPal EC.
All pages on the website are controlled using Structure so if a page isn’t known by Structure, a 404 is issued…
The problem I’m having is that when a customer cancels their payment on PayPal EC and redirected back to my website the URL is:
http://www.domain.org/en/network/purchase/?token=EC-00E472048W399303E
Which isn’t known by Structure so therefore the user gets a nice 404 page (which is not what I want)
How can I work around this and show my cancellation page:
http://www.domain.org/en/network/cancelled/
Please advise.
Sean
You could turn off Strict URLs off so your pages won’t serve the 404 – then where needed you can use require_entry=”yes” in your channel:entries tag to force a 404 redirect.
Alternately, create the /network/purchase/ URL with Structure and point it at whatever template you’d like.
Hi Jack,
I have Strict URL’s off and ‘require_entry’ set to yes. I also have the two pages ‘purchase’ and ‘cancelled’ setup within Structure but I’m still getting a 404.
http://www.domain.org/en/network/cancelled/?token=XYZ
It’s the ?token= segment part of the URL that Structure isn’t liking and therefore returning an 404
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.