• 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!

Buying Buying an auto zaypay script!

samiii

New Member
Joined
Apr 30, 2011
Messages
63
Reaction score
0
Hey, as the topic says im searching for an working automaticly zaypay script for gesior 0.3.1 if it is anyone for free then please help me. If u have one please pm or comment, it would also be good with a paypal script !

Msn: [email protected]
Give me a price :)

Regards Sami!
 
Last edited:
lol zaypay is automatic.

Just set in both palogue and price setting in this line:

At Report URL part in both paylogue and price setting.

http://yourots.xxx.xx/zaypay/report.php

Don't forget to change yourots.xxx.xx to your servers IP/Domain.

To be exact it's here and remember there are 2 of them, 1 each in Price Setting and Paylogue
Also do make sure that you have price setting and paylogue set-up in the first place.

pmaCc.png
 
But i get this error when i send an sms "invalid code" ?
 
Ok, now i recieve the payments but the still dont get the points whats the problem?
 
I cant do ctrl+g to go to a line so i add the whole report.php

<?php
/*-----------------------------------------------------------------------
Name : report.php
Version : 1.2-PHP5
Description : Retrieve payment information, when triggerd by Zaypay
Date : June 2009, Amsterdam, The Netherlands
By : Zaypay International B.V. 2008 - 2009 (RDF)
Last changes : Made class easier to use and understand
-----------------------------------------------------------------------*/

require_once('includes/config.php');
require_once('includes/Zaypay.class.php');
require_once('includes/database.php');
$Zaypay = New Zaypay($price_setting_id, $price_setting_key);

if (isset($_GET['payment_id'])) {
$zaypay_info = $Zaypay->show_payment($_GET['payment_id']);

$payment_id = $zaypay_info['payment']['id'];
$payment_status = $zaypay_info['payment']['status'];

// Get the ID
$result = mysql_query("SELECT * FROM zaypay_payment WHERE payID='{$payment_id}' LIMIT 1");
$array = mysql_fetch_assoc($result);

// Get current amount of points
$pp = mysql_query("SELECT premium_points FROM accounts WHERE accounts.id = '{$array['account_id']}'");
$points = mysql_fetch_assoc($pp);
$point = $points["premium_points"] $points_to_give;

// Update to new status in database
mysql_query("UPDATE zaypay_payment SET status = '{$payment_status}' WHERE payID = '{$payment_id}'");

// Only give points if the status is "paid"
if ($payment_status == "paid" && $array["status"] != "paid") {
// Update points in account table
mysql_query("UPDATE accounts SET premium_points = '$point' WHERE accounts.id = '{$array['account_id']}'");
mysql_query("INSERT INTO `z_shop_points_bought` (`id`, `amount`, `type`, `accountid`, `code`, `paypalmail`, `date`) VALUES (NULL , '".$points_to_give."', 'Zaypay', '".$array['account_id']."', '".$payment_id."', 'N/A',CURRENT_TIMESTAMP);");
}
}

die ('*ok*');

?>
 
And by the way, i got another bug :( when someone donates now they dont get the points why?
 
PHP:
$point = $points["premium_points"]	$points_to_give;
Should be:
PHP:
$point = $points["premium_points"] + $points_to_give;
? (line 29 i assume) might solve all your problems :ninja:
 
Back
Top