• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Debian - Gesior ZayPay no points

vvglex

New Member
Joined
Jan 2, 2015
Messages
162
Reaction score
2
Hey i have gesior acc with tfs 0.4 on debian and when people buy points i get the money, but they dont get their points :/ please help.

Config
Code:
<?php
$options[130114]['name'] = 'Buy 30 premium points';
$options[130114]['payalogue_id'] = 137517;
$options[130114]['price_id'] = 156809;
$options[130114]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[130114]['points'] = 30;

$options[130124]['name'] = 'Buy 75 premium points';
$options[130124]['payalogue_id'] = 137515;
$options[130124]['price_id'] = 156811;
$options[130124]['price_key'] = 'eeb03c9bd8939fefa77a8b3806a43a5a';
$options[130124]['points'] = 75;

$options[130134]['name'] = 'Buy 180 premium points';
$options[130134]['payalogue_id'] = 137519;
$options[130134]['price_id'] = 156811;
$options[130134]['price_key'] = '781d6f0061edb2699fc35ae0dd8717bc';
$options[130134]['points'] = 180;

$options[130144]['name'] = 'Buy 400 premium points';
$options[130144]['payalogue_id'] = 137521;
$options[130144]['price_id'] = 156815;
$options[130144]['price_key'] = '3fbc4e6e3be06bf7940ce347eefcacde';
$options[130144]['points'] = 400;

$options[130154]['name'] = 'Buy 700 premium points';
$options[130154]['payalogue_id'] = 137523;
$options[130154]['price_id'] = 156817;
$options[130154]['price_key'] = '6c737bb9be9be4fa8af5451c9933f84d';
$options[130154]['points'] = 700;

$options[130164]['name'] = 'Buy 1400 premium points';
$options[130164]['payalogue_id'] = 137525;
$options[130164]['price_id'] = 156819;
$options[130164]['price_key'] = '33061b91c141530ba00ed2c325eaf270';
$options[130164]['points'] = 1400;

Report
Code:
<?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')+$option['points']));
                $account->save();
            }
            echo '*ok*';
            exit;
        }
        else
        {
            echo '*ERROR: cannot save code to folder used_codes, make that folder writeable*';
            exit;
        }
    }
    else
    {
        echo '*ok*';
        exit;
    }
}
echo '*ERROR: bugged config or someone try to hack*';
exit;

@Limos
@Ninja
@dominique120
 
Try this (i dont test)

Code:
<?php
$options[130114]['name'] = 'Buy 30 premium points';
$options[130114]['payalogue_id'] = 137517;
$options[130114]['price_id'] = 156809;
$options[130114]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[130114]['points'] = '30';

$options[130124]['name'] = 'Buy 75 premium points';
$options[130124]['payalogue_id'] = 137515;
$options[130124]['price_id'] = 156811;
$options[130124]['price_key'] = 'eeb03c9bd8939fefa77a8b3806a43a5a';
$options[130124]['points'] = '75';

$options[130134]['name'] = 'Buy 180 premium points';
$options[130134]['payalogue_id'] = 137519;
$options[130134]['price_id'] = 156811;
$options[130134]['price_key'] = '781d6f0061edb2699fc35ae0dd8717bc';
$options[130134]['points'] = '180';

$options[130144]['name'] = 'Buy 400 premium points';
$options[130144]['payalogue_id'] = 137521;
$options[130144]['price_id'] = 156815;
$options[130144]['price_key'] = '3fbc4e6e3be06bf7940ce347eefcacde';
$options[130144]['points'] = '400';

$options[130154]['name'] = 'Buy 700 premium points';
$options[130154]['payalogue_id'] = 137523;
$options[130154]['price_id'] = 156817;
$options[130154]['price_key'] = '6c737bb9be9be4fa8af5451c9933f84d';
$options[130154]['points'] = '700';

$options[130164]['name'] = 'Buy 1400 premium points';
$options[130164]['payalogue_id'] = 137525;
$options[130164]['price_id'] = 156819;
$options[130164]['price_key'] = '33061b91c141530ba00ed2c325eaf270';
$options[130164]['points'] = '1400';
 
Try this (i dont test)

Code:
<?php
$options[130114]['name'] = 'Buy 30 premium points';
$options[130114]['payalogue_id'] = 137517;
$options[130114]['price_id'] = 156809;
$options[130114]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[130114]['points'] = '30';

$options[130124]['name'] = 'Buy 75 premium points';
$options[130124]['payalogue_id'] = 137515;
$options[130124]['price_id'] = 156811;
$options[130124]['price_key'] = 'eeb03c9bd8939fefa77a8b3806a43a5a';
$options[130124]['points'] = '75';

$options[130134]['name'] = 'Buy 180 premium points';
$options[130134]['payalogue_id'] = 137519;
$options[130134]['price_id'] = 156811;
$options[130134]['price_key'] = '781d6f0061edb2699fc35ae0dd8717bc';
$options[130134]['points'] = '180';

$options[130144]['name'] = 'Buy 400 premium points';
$options[130144]['payalogue_id'] = 137521;
$options[130144]['price_id'] = 156815;
$options[130144]['price_key'] = '3fbc4e6e3be06bf7940ce347eefcacde';
$options[130144]['points'] = '400';

$options[130154]['name'] = 'Buy 700 premium points';
$options[130154]['payalogue_id'] = 137523;
$options[130154]['price_id'] = 156817;
$options[130154]['price_key'] = '6c737bb9be9be4fa8af5451c9933f84d';
$options[130154]['points'] = '700';

$options[130164]['name'] = 'Buy 1400 premium points';
$options[130164]['payalogue_id'] = 137525;
$options[130164]['price_id'] = 156819;
$options[130164]['price_key'] = '33061b91c141530ba00ed2c325eaf270';
$options[130164]['points'] = '1400';
it looks like the one i allready have?
 
Old:
Code:
$options[130114]['points'] = 30;

New:
Code:
$options[130114]['points'] = '30';

You eat '

If you try and does not work show me error.log (last 5 line)

That will not make any different since integer not require '' around. Only strings.
 
$options[130114]['name'] = 'Buy 30 premium points';
$options[130114]['payalogue_id'] = 137517;
$options[130114]['price_id'] = 156809;
$options[130114]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[130114]['points'] = 30;

The price ID number should also be this number:
$options[156809]

Just correct that mistake in all of them, so for example this one should be:

PHP:
$options[156809]['name'] = 'Buy 30 premium points';
$options[156809]['payalogue_id'] = 137517;
$options[156809]['price_id'] = 156809;
$options[156809]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[156809]['points'] = 30;
 
$options[130114]['name'] = 'Buy 30 premium points';
$options[130114]['payalogue_id'] = 137517;
$options[130114]['price_id'] = 156809;
$options[130114]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[130114]['points'] = 30;

The price ID number should also be this number:
$options[156809]

Just correct that mistake in all of them, so for example this one should be:

PHP:
$options[156809]['name'] = 'Buy 30 premium points';
$options[156809]['payalogue_id'] = 137517;
$options[156809]['price_id'] = 156809;
$options[156809]['price_key'] = '895bd4c3a22b0f1b86749a455178773d';
$options[156809]['points'] = 30;
oh okay thanks :)
 
Back
Top