Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/vaticaplus/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include ("Admin/Includes/db.php"); $uid = $_SESSION['userid'] ; $_SESSION['itemid'] = $_POST["itemid"]; $_SESSION['itemqty'] = $_POST["itemqty"]; $_SESSION['itempri'] = $_POST["itempri"]; $_SESSION['comid'] = $_POST["comid"]; $_SESSION['lname'] = $_POST["lname"]; $_SESSION['address'] = $_POST["address"]; $_SESSION['state'] = $_POST["state"]; $_SESSION['city'] = $_POST["city"]; $_SESSION['msgonr'] = $_POST["msgonr"]; $_SESSION['check'] = $_POST["check"]; $_SESSION['goids'] = $_POST["goids"]; $_SESSION['daddress'] = $_POST["daddress"]; $_SESSION['dstate'] = $_POST["dstate"]; $_SESSION['dcity'] = $_POST["dcity"]; $_SESSION['ddate'] = $_POST["ddate"]; $_SESSION['dname'] = $_POST["dname"]; $_SESSION['dphone'] = $_POST["dphone"]; $_SESSION['landmark'] = $_POST["landmark"]; $_SESSION['pincode'] = $_POST["pincode"]; $_SESSION['discount'] = $_POST["discount"]; $burl= "http://" . $_SERVER['SERVER_NAME']; // print_r($_SESSION); // exit; require_once('vendor/autoload.php'); $API_KEY ="4a919500044332edebf4a2aaa1d8aec6";// "test_d883b3a8d2bc1adc7a535506713"; $AUTH_TOKEN = "b873a698482b092d48979847c5f9236f";//"test_dc229039d2232a260a2df3f7502"; $URL = "https://www.instamojo.com/api/1.1/"; $api = new Instamojo\Instamojo($API_KEY, $AUTH_TOKEN, $URL); try { $response = $api->paymentRequestCreate(array( "purpose" => "FIFA 16", "amount" => $_POST["amount"], "buyer_name" => $_POST["name"], "send_email" => true, "email" => $_POST["email"], "phone" => $_POST["phone"], "redirect_url" => " $burl/payment-success.php", // "webhook" => "https://vaticaplus.ossoshopping.com/webhook.php" )); header('Location: ' . $response['longurl']); exit(); }catch (Exception $e) { print('Error: ' . $e->getMessage()); } ?>