php - save variable in database passed from javascript function -


here code using want save payment_id in database.

var options = { "key": "", "amount": <?php echo $new_total ?> , // 2000 paise = inr 20 "name": "", "description": <?php echo $session_items ?>, "image": "images/newpp.png", "handler": function (response){     alert(response.razorpay_payment_id);     }, "prefill": {     "name": "your name",     "email": "" }, "notes": {     "address": "hello world" }, "theme": {     "color": "#2ae92a" } }; var rzp1 = new razorpay(options);  document.getelementbyid('rzp-button1').onclick = function(e){ rzp1.open(); e.preventdefault(); } 

how save id in mysql database.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -