php - Laravel How to store payment gateway response url data value in database -


currently, i'm integrating new payment gateway in laravel. in response url, getting datastring payment gateway like:

http://www.example.com/payment/response?txn_status=00&txn_msg=success&txn_err_msg=na&clnt_txn_ref=000000&tpsl_txn_id=000000&txn_amt=1.00&hash=0000000000000000000 

i want store url datastring value database how should able in laravel?

as url string contains parameters, route 'get'. have write this:

$getdata = input::get();  //to print echo "<pre>"; print_r($getdata);  //to log response log::info("payment response : ".print_r($getdata, true)); 

now, insert response, use laravel eloquent or simple query.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -