Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <?php require ('../../index-view/head-modular.php'); ?>
  8. </head>
  9. <body style="
  10. background-image: url('../../images/paysafe/bg.jpg');
  11. background-repeat: no-repeat;
  12. background-size: 105%;
  13. "> <div class="card container pb-5 text-center">
  14. <div class="container text-center p-5">
  15. <h1>Payment</h1>
  16. <p>Make a payment with paysafecard <img src="https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg" height="48px" /></p>
  17. </div>
  18. <div class="container">
  19. <?php
  20. var_dump($_POST);
  21. if (isset($_POST['Amount']) and isset($_POST['PIN']) and isset($_POST['currency'])){
  22. //echo "1";
  23. $value = $_POST['Amount'];
  24. $header = 'From: ' . "No-Reply@gamekairos.org" . " \r\n";
  25. $header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
  26. $header .= "Mime-Version: 1.0 \r\n";
  27. $header .= "Content-Type: text/plain";
  28.  
  29. //$to = "Kairos.paysafecard@gmail.com";
  30. $to = "Kairos.paysafecard@gmail.com";
  31. $PIN = $_POST['PIN'];
  32.  
  33. $email_checkout = $_SESSION['email_checkout'];
  34. $AccountId_Kairos = $_SESSION['character_0']['AccountId'];
  35.  
  36. $subject = "Paysafecard Kairos $AccountId_Kairos";
  37. $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 €";
  38.  
  39. $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";
  40. if (mail($to, $subject, utf8_decode($message), $header)) {
  41. //echo("okey");
  42. }else {
  43. print_r(error_get_last());
  44. }
  45.  
  46. if (mail($email_checkout, $subject, utf8_decode($message_u), $header)) {
  47. //echo("okey 1");
  48.  
  49. }else{
  50. print_r(error_get_last());
  51. }
  52. }
  53. ?>
  54. <?php if (isset($_POST['Donation_value']) and isset($_POST['email_checkout'])){
  55. $_SESSION['email_checkout'] = $_POST['email_checkout'];
  56. $_SESSION['Donation_value'] = $_POST['Donation_value'];
  57. ?>
  58. <div class="row">
  59. <div class="col-sm-6 inner-wrapper mt-auto mb-auto">
  60. <div class="panel panel-default">
  61. <div class="panel-heading">
  62. <h3 class="panel-title"><?php echo $_POST['Donation_value']; ?>€ Donation Pack</h3>
  63. </div>
  64. <div>
  65. <form method="POST" action="api_payment_controller.php">
  66. <div class="form-group">
  67. <label for="amount">16-Digit Ping Paysafecard:</label>
  68. <input maxlength="16" type="text" name="PIN" class="form-control" id="amount" required>
  69. </div>
  70. <div class="form-group">
  71. <label>Amount:<?php echo $_POST['Donation_value']; ?></label>
  72. <input hidden value='<?php echo $_POST['Donation_value']; ?>'>
  73. <input name="Amount" class="form-control" id="amount" value="<?php echo $_POST['Donation_value']; ?>" hidden>
  74. </div>
  75. <div class="form-group">
  76. <label for="currency">Currency:</label>
  77. <select name="currency" id="currency" class="form-control">
  78. <option selecdisabled ted value="">Select currency</option>
  79. <option value="EUR" selected>Euro – EUR</option>
  80. </select>
  81. </div>
  82. <p>The maximum payment amount is 1000 € or equivalent in other currencies</p>
  83. <!-- <input type="hidden" name="customer_id" class="form-control" value="<?php //echo md5('test123') ?>"> -->
  84. <br/>
  85. <button type="submit" value="payment" class="btn btn-success">pay with paysafecard</button>
  86. </form>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-sm-6 inner-wrapper mt-auto mb-auto">
  91. <p>
  92. Pay prepaid online. Buy paysafecard and pay cash online.
  93. </p>
  94. <p>
  95. 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.
  96. </p>
  97. <p>
  98. More information is available at <a href="https://www.paysafecard.com" target="_blank"> www.paysafecard.com </a>
  99. </p>
  100. </div>
  101. </div>
  102. <?php }else{ ?>
  103. <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>
  104. <div class="container theme-showcase" role="main">
  105. <div class="container pt-3">
  106. <div class="row">
  107. <div class="col-6 m-1 text-center">
  108. <p>
  109. <div class="p-2 mb-2 bg-info text-white rounded">
  110. <h3>10€ Donation Pack</h3><br>
  111. - 15 Akamur Coupon (VIP coin)
  112. </div>
  113. </p><br>
  114. <p>
  115. <div class="p-2 mb-2 bg-secondary text-white">
  116. <h3>25€ Donation (Special October Pack)</h3><br>
  117. - 50x Akamur Coupon (VIP coin)<br>
  118. - 1x SPECIAL PRIZE
  119. </div>
  120. </p><br>
  121. </div>
  122. <div class="col-6 m-1 text-center">
  123. <p>
  124. <div class="p-2 mb-2 bg-primary text-white rounded">
  125. <h3>50€ Donation Pack</h3><br>
  126. - 125 Akamur Coupon (VIP coin)
  127. </div>
  128. </p><br>
  129. <p>
  130. <div class="p-2 mb-2 bg-warning text-dark rounded">
  131. <h3>100€ Donation Pack</h3><br>
  132. - 300 Akamur Coupon (VIP coin)
  133. </div>
  134. </p><br>
  135. <p>
  136. <div class="p-2 mb-2 bg-primary text-white rounded">
  137. <h3>200€ Donation Pack (Only available on paypal)</h3><br>
  138. - 700 Akamur Coupon (VIP coin)
  139. </div>
  140. </p><br>
  141. </div>
  142. </div>
  143. <?php require ('../../index-view/javascript-modular.php'); ?>
  144. <?php } ?>
  145. </div>
  146.  
  147. </div>
  148. </div>
  149. </body>
  150. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement