• 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 Gesior 1.0.1 - Players pay but wont get points

Lightonia

Lightonia.servegame.com
Joined
Jun 4, 2007
Messages
492
Reaction score
9
Hi Players pay but they wont get their points. The only error i get is
Code:
*bugged config*

So here are the scripts
Zaypay/config
PHP:
<?php
$options[1]['name'] = 'Buy 250 premium points';
$options[1]['payalogue_id'] = 131063;
$options[1]['price_id'] = 146135 ;
$options[1]['price_key'] = '19c44dcce29c6d8ea052bb27978dfc87';
$options[1]['points'] = 250;

$options[2]['name'] = 'Buy 600 premium points';
$options[2]['payalogue_id'] = 131065;
$options[2]['price_id'] = 148481;
$options[2]['price_key'] = 'ba9e3708bead611eff18edd635dae1d9';
$options[2]['points'] = 600;

$options[3]['name'] = 'Buy 1300 premium points';
$options[3]['payalogue_id'] = 131067;
$options[3]['price_id'] = 148495;
$options[3]['price_key'] = '530d08ee74868b55351d139af20a1156';
$options[3]['points'] = 1300;

Zaypay_report
PHP:
 <?php
if(!defined('INITIALIZED'))
	exit;

require_once('./custom_scripts/zaypay/config.php');

if(isset($_GET['payment_id']) && isset($_GET["price_setting_id"]) && isset($options[$_GET["price_setting_id"]]))
{
	$option = $options[$_GET["price_setting_id"]];
	$zaypay = new Zaypay($option['price_id'], $option['price_key']);
	$zaypay_info = $zaypay->show_payment($_GET['payment_id']);
	if($zaypay_info["payment"]["status"] == 'paid' && !file_exists('./custom_scripts/zaypay/used_codes/zay_id_' . $zaypay_info["payment"]["id"]. '.txt'))
	{
		$_acc = explode('=', $zaypay_info["payment"]["your-variables"]);
		$acc = $_acc[1];
		if(file_put_contents('./custom_scripts/zaypay/used_codes/zay_id_' . $zaypay_info["payment"]["id"]. '.txt' , 'account:' . $acc . ',amount-euro:' . $zaypay_info["payment"]["amount-euro"] . ',points:' . $option['points']) !== false)
		{
			$account = new Account($acc);
			if($account->isLoaded())
			{
				$account->set('premium_points', ($account->getCustomField('premium_points')+$number_of_points));
				$account->save();
			}
			echo '*ok*';
			exit;
		}
		else
		{
			echo '*cannot save code to folder used_codes*';
			exit;
		}
	}
	else
	{
		echo '*code already used*';
		exit;
	}
}
echo '*bugged config*';
exit;

Whats wrong?
 
Back
Top