GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("session.php"); include("connect.php"); $product_name = "Shopping"; $price = $_GET['amount']*100; $user_name = $_GET['user_name']; $mobb = $_GET['mobb']; $email = $_GET['email']; if($email=="") { $email="info@app.com"; } $orderid=$_GET['order_id']; $user_id=$_COOKIE["user_id"]; setcookie("amount", $price, time()+3600); setcookie("userName", $user_name, time()+3600); setcookie("mobile", $mobb, time()+3600); setcookie("email", $email, time()+3600); setcookie("orderid", $orderid, time()+3600); ?> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="http://techeor.co.in/google/jquery.js"></script> <script src="https://checkout.razorpay.com/v1/checkout.js"></script> <title></title> </head> <body> <script> var options = { "key": "rzp_live_k8XVM54O7xckQZ", "amount":"<?php echo $price; ?>", "currency": "INR", "name": "<?php echo $product_name; ?>", "description": "Shopping", "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "image": "https://junglebasket.in/admin.cpanel/prod_image/logo.png", "handler": function (response){ jQuery.ajax({ type:'post', url:'saveData.php', data:"payment_id="+response.razorpay_payment_id+"&orderid=<?php echo $orderid; ?>&amount=<?php echo $_GET['amount']; ?>&user_id=<?php echo $_COOKIE["user_id"]; ?>", success:function(result){ window.location.href="success.php?orderid=<?php echo $orderid; ?>&name=<?php echo $name; ?>&email=<?php echo $email; ?>&price=<?php echo $price; ?>&type=0"; } }); }, "modal": { "ondismiss": function(){ window.location.replace("failure.php?orderid=<?php echo $orderid; ?>&name=<?php echo $name; ?>&email=<?php echo $email; ?>&price=<?php echo $price; ?>"); } }, "theme": { "color": "#528FF0" } }; var rzp1 = new Razorpay(options); rzp1.open(); e.preventDefault(); </script> </body> </html>