[eluser]Yorkshire Pudding[/eluser]
nice idea, but the crypt that the payment gateway sends back includes '/' and '=' etc. I tried a similar thing earlier using a file outside of CI to redirect. I used urlencode() / urldecode() and then the header() function but couldn't get it to work. I'm pretty sure that if someone can figure how to route this url. (Essentially just stripping away everything after and including the question mark)
Code:
http://localhost/mysite/index.php/home/order_success?crypt=DycAHF1HGiA1WRU9VFFGA2tkOChhYTYREgsKGyogQAQbdFpVAgd8HFsEMGlRSUBxbnRDOgIMDWswd0lpWlJJSH8RGhlGQD1lOX1XCx0FBUAqBgsMU1wiZUYGQWhJXlFhMSdOOUdBJjcEXwI5HQ0eW3k1DwsSZjs7FVMCKw8RHRt/FhY5R0EmFhkLRWlQU0kDb2QvLmF2GGpLcjAMKEQ/eg1iLTB3dgUdMhAwPA0WFEYqEAsLR1k6ZTh5JQg7Kyd8HQcqXmJaPSw1WRU9OwECQDU2UzZ9YR4KOWA4HCwgV3YPcDwdQUAiLEt4Pgw5Nj5jEAYrPBRyJz4Cdxg8VFRXBh0RCxtHRysLAlcFLRpZP3oNASY9cX4LHFB3HDccCgUIaHdASAI=
to:
Code:
http://localhost/mysite/index.php/home/order_success
then we can use $hook['pre_system'] to define a constant with $_SERVER['QUERY_STRING'] as xwero suggested earlier?