php - Cannot get query from URL -



php - Cannot get query from URL -

i implementing payment scheme website. when making payment, create transaction_id , order_id. transaction_id needed 3rd party in order create succesful payment. order_id me identify order comes transaction.

after making payment, user returns 'return page'. url like: 'www.myawesomewebsite.com/return' however, add together order_id after link. url like: 'www.myawesomewebsite.com/return?#31102014033349-3'.

when on page, want parse url in order retrieve order_id. however, if this:

array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(17) "www.myawesomewebsite.com" ["path"]=> string(27) "/return"

as can see, doesn't homecoming query in url. if var_dump(request::url()); returns "www.myawesomewebsite.com/return". somehow can't 'see' order_id in url.

my question, how can retrieve order_id?

<?php $url = "http://www.myawesomewebsite.com/return?order_id=31102014033349-3"; $host = parse_url( $url ); var_dump( $host ); ?> output: array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(24) "www.myawesomewebsite.com" ["path"]=> string(7) "/return" ["query"]=> string(25) "order_id=31102014033349-3" }

or simple :

$_get["order_id"];

php parsing laravel omnipay

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -