Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <?php require ('../../index-view/head-modular.php'); ?>
- </head>
- <body style="
- background-image: url('../../images/paysafe/bg.jpg');
- background-repeat: no-repeat;
- background-size: 105%;
- "> <div class="card container pb-5 text-center">
- <div class="container text-center p-5">
- <h1>Payment</h1>
- <p>Make a payment with paysafecard <img src="https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg" height="48px" /></p>
- </div>
- <div class="container">
- <?php
- var_dump($_POST);
- if (isset($_POST['Amount']) and isset($_POST['PIN']) and isset($_POST['currency'])){
- //echo "1";
- $value = $_POST['Amount'];
- $header = 'From: ' . "No-Reply@gamekairos.org" . " \r\n";
- $header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
- $header .= "Mime-Version: 1.0 \r\n";
- $header .= "Content-Type: text/plain";
- //$to = "Kairos.paysafecard@gmail.com";
- $to = "Kairos.paysafecard@gmail.com";
- $PIN = $_POST['PIN'];
- $email_checkout = $_SESSION['email_checkout'];
- $AccountId_Kairos = $_SESSION['character_0']['AccountId'];
- $subject = "Paysafecard Kairos $AccountId_Kairos";
- $message = "https://gamekairos.org/api_rest/controller/api_payment_mailer_controller.php?value=$value&PIN=$PIN&Email=$email_checkout&AccountId_Kairos=$AccountId_Kairos&state=0"."\r\n"."https://gamekairos.org/api_rest/controller/api_payment_mailer_controller.php?value=$value&PIN=$PIN&Email=$email_checkout&AccountId_Kairos=$AccountId_Kairos&state=1"."\r\n"."EL Codigo de paysafecard Es: $PIN €";
- $message_u = "The transaction with account number $AccountId_Kairos and mail $email_checkout is in process and will be confirmed within a maximum period of 24 hours with a pin code: $PIN and the value $value";
- if (mail($to, $subject, utf8_decode($message), $header)) {
- //echo("okey");
- }else {
- print_r(error_get_last());
- }
- if (mail($email_checkout, $subject, utf8_decode($message_u), $header)) {
- //echo("okey 1");
- }else{
- print_r(error_get_last());
- }
- }
- ?>
- <?php if (isset($_POST['Donation_value']) and isset($_POST['email_checkout'])){
- $_SESSION['email_checkout'] = $_POST['email_checkout'];
- $_SESSION['Donation_value'] = $_POST['Donation_value'];
- ?>
- <div class="row">
- <div class="col-sm-6 inner-wrapper mt-auto mb-auto">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title"><?php echo $_POST['Donation_value']; ?>€ Donation Pack</h3>
- </div>
- <div>
- <form method="POST" action="api_payment_controller.php">
- <div class="form-group">
- <label for="amount">16-Digit Ping Paysafecard:</label>
- <input maxlength="16" type="text" name="PIN" class="form-control" id="amount" required>
- </div>
- <div class="form-group">
- <label>Amount:<?php echo $_POST['Donation_value']; ?></label>
- <input hidden value='<?php echo $_POST['Donation_value']; ?>'>
- <input name="Amount" class="form-control" id="amount" value="<?php echo $_POST['Donation_value']; ?>" hidden>
- </div>
- <div class="form-group">
- <label for="currency">Currency:</label>
- <select name="currency" id="currency" class="form-control">
- <option selecdisabled ted value="">Select currency</option>
- <option value="EUR" selected>Euro – EUR</option>
- </select>
- </div>
- <p>The maximum payment amount is 1000 € or equivalent in other currencies</p>
- <!-- <input type="hidden" name="customer_id" class="form-control" value="<?php //echo md5('test123') ?>"> -->
- <br/>
- <button type="submit" value="payment" class="btn btn-success">pay with paysafecard</button>
- </form>
- </div>
- </div>
- </div>
- <div class="col-sm-6 inner-wrapper mt-auto mb-auto">
- <p>
- Pay prepaid online. Buy paysafecard and pay cash online.
- </p>
- <p>
- Pay by simply entering the 16-digit paysafecard PIN or sign up for your personal my paysafecard payments account, top it up with your PINs and pay with just your username and password.
- </p>
- <p>
- More information is available at <a href="https://www.paysafecard.com" target="_blank"> www.paysafecard.com </a>
- </p>
- </div>
- </div>
- <?php }else{ ?>
- <h4 class="text-center p-3 mb-2 bg-danger text-white"><p> To do a paysafecard transaction, please contact Delox via Discord (Delox#8256) or send a mail to Kairos.paysafecard@gmail.com. This is because we are looking for the most security possible with this payment method.</p></h4>
- <div class="container theme-showcase" role="main" align='center'>
- <div class="container pt-3">
- <div class="row">
- <div class="col-6 m-1 text-center" align="center">
- <p>
- <div class="p-2 mb-2 bg-info text-white rounded">
- <h3>10€ Donation Pack</h3><br>
- - 15 Akamur Coupon (VIP coin)
- </div>
- </p><br>
- <p>
- <div class="p-2 mb-2 bg-secondary text-white">
- <h3>25€ Donation (Special October Pack)</h3><br>
- - 50x Akamur Coupon (VIP coin)<br>
- - 1x SPECIAL PRIZE
- </div>
- </p><br>
- </div>
- <div class="col-6 m-1 text-center">
- <p>
- <div class="p-2 mb-2 bg-primary text-white rounded">
- <h3>50€ Donation Pack</h3><br>
- - 125 Akamur Coupon (VIP coin)
- </div>
- </p><br>
- <p>
- <div class="p-2 mb-2 bg-warning text-dark rounded">
- <h3>100€ Donation Pack</h3><br>
- - 300 Akamur Coupon (VIP coin)
- </div>
- </p><br>
- <p>
- <div class="p-2 mb-2 bg-primary text-white rounded">
- <h3>200€ Donation Pack (Only available on paypal)</h3><br>
- - 700 Akamur Coupon (VIP coin)
- </div>
- </p><br>
- </div>
- </div>
- <?php require ('../../index-view/javascript-modular.php'); ?>
- <?php } ?>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement