• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zaypay look

I would guess...

Somewhere in this script (donate.php or what ever it's named).

There's a <?.

Change that single <? into <?php
 
still
here is my php mate
PHP:
<?php
$payalogue_id="114454"; 
?> 
<script src="http://www.zaypay.com/pay/<?php echo $payalogue_id; ?>.js" type="text/javascript"></script> 
<a href="http://www.zaypay.com/pay/<?php echo $payalogue_id; ?>" onclick="ZPayment(this); return false"><img src="http://www.zaypay.com/pay/107864/img" border="0" /></a>
  require_once('includes/config.php');
  require_once('includes/Zaypay.class.php');
  require_once('includes/database.php');
<?php
  
  // Start session engine
  session_start();
  
  
  // Makesure this is not a guest
  if(!isset($_SESSION['account'])) {
	 die($message_to_guests);
  }

  $Zaypay = New Zaypay($price_setting_id, $price_setting_key);

  // Fourth step: check payment
  if (isset($_POST['action']) && $_POST['action'] == 'paid' && isset($_POST['paymentid'])) {
    $zaypay_info = $Zaypay->show_payment($_POST['paymentid']);
    
    $status = $zaypay_info['payment']['status'];
    
    if (isset($zaypay_info['payment']['verification-needed']) and $zaypay_info['payment']['verification-needed'] == 'true' and isset($_POST['verification_code'])) {    
      if ($zaypay_info = $Zaypay->verification_code($_POST['paymentid'], $_POST['verification_code'])) {      
        $status = $zaypay_info['payment']['status'];
      }
    }    

    if ($status == 'paid') {      
      include ('./pages/3-paid.php');
      
      $Zaypay->mark_payload_provided($_POST['paymentid']);      
    }
    elseif ($status == 'prepared' or $status == 'in_progress' or $status == 'paused') {      
      include ('./pages/2-pay.php');
    }
    else {
      echo "An error has occured [{$status}]";
    }
    
  }

  // Third step: Let consumer pay
  elseif (isset($_POST['action']) && $_POST['action'] == 'pay' && isset($_POST['locale']) && isset($_POST['paymentmethod'])) {
    if(!($zaypay_info = $Zaypay->create_payment($_POST['locale'], $_POST['paymentmethod']))){
      die ($Zaypay->getError());
    }
    
    // Here you could insert the payment information into your database. For Example:
    mysql_query("INSERT INTO vapus_payment (payID, account_id, status) VALUES ('{$Zaypay->getPaymentId()}', '{$_SESSION['account']}', 'prepared')");
    
    include ('./pages/2-pay.php');
  }
  
  // First step: Let consumer choose country and language
  else {
    if(!($locales = $Zaypay->list_locales())) {
      die($Zaypay->getError());
    }
    
    if (isset($_POST['locale_country']) and isset($_POST['locale_language'])) {    
      $Zaypay->setLocale($_POST['locale_language'] . '-' . $_POST['locale_country']);
    }
    else {
      if($noIPCheck || !$Zaypay->locale_for_ip($_SERVER['REMOTE_ADDR'])) {
        $Zaypay->setLocale($defaultCountry);
      }
    }
    
    if(!($payment_methods = $Zaypay->list_payment_methods($Zaypay->getLocale()))){
      die($Zaypay->getError());
    }
    
    include('./pages/1-choosemethod.php');
  }
  
?>
 
Edit: Fixed

PHP:
<?php
$payalogue_id="114454";
?>
<script src="http://www.zaypay.com/pay/<?php echo $payalogue_id; ?>.js" type="text/javascript"></script>
<a href="http://www.zaypay.com/pay/<?php echo $payalogue_id; ?>" onclick="ZPayment(this); return false"><img src="http://www.zaypay.com/pay/107864/img" border="0" /></a>

<?php
require_once('includes/config.php');
require_once('includes/Zaypay.class.php');
require_once('includes/database.php');
// Start session engine
session_start();


// Makesure this is not a guest
if(!isset($_SESSION['account'])) {
die($message_to_guests);
}

$Zaypay = New Zaypay($price_setting_id, $price_setting_key);

// Fourth step: check payment
if (isset($_POST['action']) && $_POST['action'] == 'paid' && isset($_POST['paymentid'])) {
$zaypay_info = $Zaypay->show_payment($_POST['paymentid']);

$status = $zaypay_info['payment']['status'];

if (isset($zaypay_info['payment']['verification-needed']) and $zaypay_info['payment']['verification-needed'] == 'true' and isset($_POST['verification_code'])) {
if ($zaypay_info = $Zaypay->verification_code($_POST['paymentid'], $_POST['verification_code'])) {
$status = $zaypay_info['payment']['status'];
}
}

if ($status == 'paid') {
include ('./pages/3-paid.php');

$Zaypay->mark_payload_provided($_POST['paymentid']);
}
elseif ($status == 'prepared' or $status == 'in_progress' or $status == 'paused') {
include ('./pages/2-pay.php');
}
else {
echo "An error has occured [{$status}]";
}

}

// Third step: Let consumer pay
elseif (isset($_POST['action']) && $_POST['action'] == 'pay' && isset($_POST['locale']) && isset($_POST['paymentmethod'])) {
if(!($zaypay_info = $Zaypay->create_payment($_POST['locale'], $_POST['paymentmethod']))){
die ($Zaypay->getError());
}

// Here you could insert the payment information into your database. For Example:
mysql_query("INSERT INTO vapus_payment (payID, account_id, status) VALUES ('{$Zaypay->getPaymentId()}', '{$_SESSION['account']}', 'prepared')");

include ('./pages/2-pay.php');
}

// First step: Let consumer choose country and language
else {
if(!($locales = $Zaypay->list_locales())) {
die($Zaypay->getError());
}

if (isset($_POST['locale_country']) and isset($_POST['locale_language'])) {
$Zaypay->setLocale($_POST['locale_language'] . '-' . $_POST['locale_country']);
}
else {
if($noIPCheck || !$Zaypay->locale_for_ip($_SERVER['REMOTE_ADDR'])) {
$Zaypay->setLocale($defaultCountry);
}
}

if(!($payment_methods = $Zaypay->list_payment_methods($Zaypay->getLocale()))){
die($Zaypay->getError());
}

include('./pages/1-choosemethod.php');
}

?>
 
Back
Top