Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title = 'Test'; //ใส่ชื่อสินค้า
- $truewallet_em = 'supersharp3310@gmail.com'; //ใส่เมลวอเลท
- $truewallet_pw = '1312542a'; //ใส่พาสวอเลท
- $truewallet_phone = '0962371804'; //ใส่เบอวอเลท
- $truewallet_text = 'XXX'; //ใส่ข้อความเช็คโอน
- $truewallet_amount = '1.00'; //ใส่ราคา
- $download_url = 'www.google.com'; //ใส่ลิงค์โหลด
- if(isset($_GET['truewallet'])) {
- $tw_pw = $_GET['truewallet'];
- if(!is_numeric($tw_pw)||strlen($tw_pw)!='14' || $tw_pw < 1) {
- echo "<script>ierror('Error !!', 'กรุณากรอกเลขอ้างอิงให้ถูกต้อง');</script>";
- exit();
- }
- // API FOR CONNECT WALLET
- $ijson = file_get_contents('https://api.itorkungz.me/?truewallet&email='.$truewallet_em.'&password='.$truewallet_pw.'&card='.$tw_pw);
- $itopup = json_decode($ijson, true);
- $tw_id = $itopup['id'];
- $tw_ms = $itopup['message'];
- $tw_phone = $itopup['phone'];
- $tw_date = $itopup['date'];
- $tw_amount = $itopup['amount'];
- if ($itopup['use'] == 1) {
- echo "<script>ierror('Error Already!', 'เลขอ้างอิงถูกใช้ไปแล้ว<br> ".$tw_pw."');</script>";
- exit();
- }
- if ($itopup['code'] == 0) {
- if(isset($_POST['submit'])){
- require 'PHPMailerAutoload.php';
- require 'credentioal.php';
- @$mail = new PHPMailer;
- @$mail->SMTPDebug = 4; // Enable verbose debug output
- @$mail->isSMTP(); // Set mailer to use SMTP
- @$mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
- @$mail->SMTPAuth = true; // Enable SMTP authentication
- @$mail->Username = EMAIL; // SMTP username
- @$mail->Password = PASS; // SMTP password
- @$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
- @$mail->Port = 587; // TCP port to connect to
- @$mail->setFrom(EMAIL, 'Auto-Sell');
- @$mail->addAddress(@$_POST['email'], 'Joe User'); // Add a recipient
- //@$mail->addAddress(EMAIL); // Name is optional
- //@$mail->addReplyTo('info@example.com', 'Information');
- // Optional name
- @$mail->isHTML(true); // Set email format to HTML
- @$mail->Subject = 'Test';
- @$mail->Body = 'www.google.com';
- @$mail->send();
- }
- echo "<script>ierror('Error 404!', 'ไม่พบเลขอ้างอิงที่กรอกมา<br> ".$tw_pw."');</script>";
- exit();
- }
- if($tw_amount !== $truewallet_amount) {
- echo "<script>ierror('Error !!', 'คุณต้องโอนเงินให้ตรงกับ ระบบกำหนดให้ <br> คุณต้องโอนจำนวน <font color=\"black\">\"$truewallet_amount\"</font> เท่านั้น !!');</script>";
- exit();
- }
- if($tw_ms !== $truewallet_text) {
- echo "<script>ierror('Error !!', 'ข้อความของคุณไม่ตรงกับ ระบบกำหนด <br> คุณต้องใส่ข้อความว่า <font color=\"black\">\"$truewallet_text\"</font> เท่านั้น !!');</script>";
- exit();
- }
- if ($itopup['code'] == 1) {
- echo "<script>isuccess('Success Buy!', 'ซื้อสินค้าสำเร็จ <br>จำนวน : $tw_amount บาท <br><a href=\"".$download_url."\" class=\"btn btn-success\"><i class=\"fas fa-download\"></i> Download</a> ');</script>";
- exit();
- }
- else
- {
- echo "<script>ierror('Error 404!', 'ไม่พบเลขอ้างอิงที่กรอกมา<br> ".$tw_pw."');</script>";
- exit();
- }
- }
- ?>
- <html>
- <head>
- <meta charset="utf-8">
- <title>ชำระสินค้า</title>
- <link rel="icon" href="https://png.pngtree.com/svg/20160225/579cc1738b.png">
- <link rel="stylesheet" href="dist/bootstrap.min.css">
- <link rel="stylesheet" href="dist/styles.css">
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kanit:300">
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
- <script src="dist/jquery.min.js"></script>
- <script src="dist/bootstrap.min.js"></script>
- <script src="dist/sweetalert.min.js"></script>
- <script src="dist/script.js"></script>
- <style type="text/css">
- body
- {
- background: url(dist/backg.jpg) no-repeat center fixed;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- font-family:"Kanit", sans-serif;
- color: black;
- }
- </style>
- </head>
- <body>
- <div class="container col-4" style="margin-top:20px;">
- <div align="center">
- <div class="border border-light" style="margin-top:40px; margin-bottom: 50px; ">
- <div class="card-header" style="color:white; background: rgba(0,0,0,0.5) !important;"><h5><i class="fas fa-cart-plus"></i> <?php echo $title; ?>(<?php echo $truewallet_amount; ?> บาท)</h5></div>
- <div class="card-body" style="background: rgba(0,0,0,0.3) !important;">
- <div id="return"></div>
- <p>
- </p>
- <form method="post">
- <div class="text-left mt-1 text-light"> Email</div>
- <div class="input-group">
- <input type="text" name="email" class="form-control" placeholder="กรุณากรอก Email" value="" />
- </div>
- </form>
- <div class="text-left mt-1 text-light"> เลขอ้างอิง</div>
- <div class="input-group">
- <input class="form-control" style="height: 40px;" name="itruewallet" id="itruewallet" type="text" required maxlength="14" placeholder="กรุณากรอกเลขอ้างอิง 14 หลัก">
- </div>
- <div class="text-center" style="color: white; margin-top:20px;">
- <li> เปิดแอพวอเลท กดเมนู โอนเงิน ใส่เบอร์วอเลท <a class="btn btn-primary" style="color: pink;"><?php echo $truewallet_phone; ?></a></li>
- <li> ใส่จำนวนเงิน <b><?php echo $truewallet_amount; ?> บาท</b> แล้วกดปุ่มโอนเงิน</li>
- <li> เสร็จแล้วจะเห็นเลขที่อ้างอิง ให้นำมาใส่</li>
- </div>
- <div style="margin-top:10px;" class="alert alert-danger"><i class="fa fa-exclamation-triangle fa-lg"></i> <b>คำเตือน</b> ตอนโอนเงินกรุณาใส่คำว่า "<b><?php echo $truewallet_text; ?></b>" ด้วยไม่งั้น ระบบจะไม่เช็ค !!!!!</div>
- <div style="margin-top:10px;" class="alert alert-warning"><i class="fa fa-exclamation-triangle fa-lg"></i> <b>หมายเหตุ</b> หากมีปัญหาในการสั่งซื้อหรือรอนานผิดปกติ กรุณาติดต่อที่<a href="#"> Support</a></div>
- <br>
- <button class="btn btn-outline-success" type="submit" id="btn" onclick="buy();"><i class="fas fa-check"></i> ยืนยันการโอนเงิน</button>
- <a class="btn btn-outline-danger" href="../index.html" role="button"><i class="fas fa-external-link-alt"></i> กลับไปหน้าแรก</a>
- </div>
- </div>
- </div>
- </div>
- <footer class="mastfoot mt-auto">
- <div class="text-center mt-2 mb-2" style="color: white;">2019 © | Script Shop</div>
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement