I am implementing a payment system into my website. When making a payment, i create a transaction_id and a order_id. The transaction_id is needed by the third party in order to make a succesful payment. The order_id is for me to identify which order comes with which transaction.
After making a payment, the user returns to the 'return page'. this URL would be something like: 'www.myawesomewebsite.com/return' however, it add the order_id after the link. So this url would look like: 'www.myawesomewebsite.com/return?#31102014033349-3'.
When i am on this page, i want to parse the URL in order to retrieve the order_id. However, if i do something like this:
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(17) "www.myawesomewebsite.com" ["path"]=> string(27) "/return"
As you can see, it doesn't return the query in the URL. If i var_dump(Request::url());
It also returns "www.myawesomewebsite.com/return". Somehow it can't 'see' the order_id in the URL.
My question, how can i successfully retrieve the order_id?