hjkhhrtertererrrrrerrtertertertertertertert
bnmbnerterterterterterdfgdfgdfgdfgdfgdfgdfgdfgdfg
/
home4
/
digil8bw
/
nishaadresorts.com
/
Upload FileeE
HOME
<?php include("configuration/function-include.php"); $order_id="NISH_".mt_rand(1000,9999); $data = [ 'receipt'=>$order_id, 'payment_id' => $_POST['razorpay_payment_id'], 'amount' => $_POST['totalAmount'], 'product_id' => $_POST['product_id'], 'payment_capture' => 1 , ]; // you can write your database insertation code here $_SESSION['card_holder_name_id']=$_POST['card_holder_name_id']; $_SESSION['email'] =$_POST['email']; $_SESSION['phone'] =$_POST['phone']; $_SESSION['checkin'] = $_POST['checkin']; $_SESSION['checkout'] = $_POST['checkout']; $_SESSION['adults'] = $_POST['adults']; $_SESSION['adultprice'] = $_POST['adultprice']; $_SESSION['children'] = $_POST['children']; $_SESSION['product_id'] = $_POST['product_id']; $_SESSION['roomplan'] = $_POST['roomplan']; $_SESSION['comments'] = $_POST['comments']; $_SESSION['priceplan'] = $_POST['priceplan']; $_SESSION['merchant_amount'] = $_POST['merchant_amount']; $_SESSION['order_id']=$order_id; $_SESSION['razorpay_payment_id'] = $_POST['razorpay_payment_id']; // after successfully insert transaction in database, pass the response accordingly $arr = array('msg' => 'Payment successfully credited', 'status' => true); echo json_encode($arr); ?>