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

Stian's Zaypay script (standalone v0.1.2c)

My system doesn't give points to players after buy points... I have all configured . Please help me please :(

My report script:

<?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*');

?>

Any problem ?
 
Since your using a custom system, I can't give you any support on it.
 
So I bought this script now. 0.2.x . Is there a modernacc tutorial, since this differs a little im just curious.
 
Sorry for dubbelpost but I cant edit my post.
I still got the same problem as I had with the free one, Im only seing, "you must be logged in" even if im logged in.
 
3pple post to say I've fixed my problems. You can delete my posts. Wierd I cant edit my posts.
 
OK Guys get ready for my 4th POST! I got everything to work on my homecomputer, working great. But when I install all on my dedicated it says this when looking at http://host.net/zaypay/pay.php ( as I can enter but takes a while )

Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\UniServer\www\zaypay\includes\database.php on line 3 Warning: mysql_connect(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\UniServer\www\zaypay\includes\database.php on line 3 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\UniServer\www\zaypay\includes\database.php on line 4 Warning: mysql_query(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\UniServer\www\zaypay\pay.php on line 33 Warning: mysql_query(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\UniServer\www\zaypay\pay.php on line 33 Warning: mysql_query(): A link to the server could not be established in C:\UniServer\www\zaypay\pay.php on line 33 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\UniServer\www\zaypay\pay.php on line 35 Warning: mysql_query(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\UniServer\www\zaypay\pay.php on line 37 Warning: mysql_query(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\UniServer\www\zaypay\pay.php on line 37 Warning: mysql_query(): A link to the server could not be established in C:\UniServer\www\zaypay\pay.php on line 37 Warning: mysql_query(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\UniServer\www\zaypay\pay.php on line 44 Warning: mysql_query(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\UniServer\www\zaypay\pay.php on line 44 Warning: mysql_query(): A link to the server could not be established in C:\UniServer\www\zaypay\pay.php on line 44 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\UniServer\www\zaypay\pay.php on line 47 Warning: mysql_query(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\UniServer\www\zaypay\pay.php on line 49 Warning: mysql_query(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\UniServer\www\zaypay\pay.php on line 49 Warning: mysql_query(): A link to the server could not be established in C:\UniServer\www\zaypay\pay.php on line 49 Fatal error: Maximum execution time of 300 seconds exceeded in C:\UniServer\www\zaypay\pay.php on line 50



EH?xD
 
Hello!

My issue is that i don't get the points when i donate via "servername.net/?subtopic=zaypay1" (which contains zaypay Payalogue from zaypay.com) but i get points when using "servername.net/zaypay/pay.php"...

Please help me what's the problem? :S

Regards,
Believer!
 
Not a issue, this is build to work with the pay.php not the payalogue, I won't change that, ever.
 
Yes sure... but it is possible, isnt it?? I've seen many OTS that have zaypay donation with payalogues, have any idea where to get that script?
Also may I ask why you won't do that? :$
 
Yes sure... but it is possible, isnt it?? I've seen many OTS that have zaypay donation with payalogues, have any idea where to get that script?
Also may I ask why you won't do that? :$

Technicly, you just have to put the report url and it should work, paylogues is just a pay frontend.
 
Okay, i need help with this, can u fix?

Error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\zaypay\pay.php on line 36
*ok*
Line 36: if (mysql_num_rows($res)<1)
 
So this is the problem:
People who enters my site through www.homepage.net, see's "you need to be logged in"

People who enters my site through homepage.net(without www.) has got no problem.

QUESTION: Is it possible to make this work both ways? Because for example, sometimes I use www.homepage.net and sometimes I use homepage.net. I mean, people doesnt always write www. but sometimes they do and maybe that time they're going to donate, as 2 persons we're going to do, before I found the solution they were offline :p Maybe it has happened before, I dont know. Still this is a bad "problem"

Thank you
 
So this is the problem:
People who enters my site through HomePage | Website Design - Database Design - Webpage Design - Online Store Design, see's "you need to be logged in"

People who enters my site through homepage.net(without www.) has got no problem.

QUESTION: Is it possible to make this work both ways? Because for example, sometimes I use HomePage | Website Design - Database Design - Webpage Design - Online Store Design and sometimes I use homepage.net. I mean, people doesnt always write www. but sometimes they do and maybe that time they're going to donate, as 2 persons we're going to do, before I found the solution they were offline :p Maybe it has happened before, I dont know. Still this is a bad "problem"

Thank you

Try to use .htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301,L]

so, create .htaccess file and put it in htdocs

:)
 
in my server i use that script but when i test

after i finish pay i get that msg


Payment
Paid
You have paid!
Powered by: Zaypay v0.1.2b by Stian, a VAPus Lab project under CC-BY



and then nothing and dont get points
 
do i need change in that
Zaypay.class.php

class Zaypay {
private $price_setting_id = 0;
private $price_setting_key = null;

private $locale_consumer = null;

private $payment_id = 0;

private $request_method = 'fsock'; // CURL or fsock
private $request_url = 'https://secure.zaypay.com';
private $request_url_scheme = null;
private $request_url_host = null;
private $request_url_port = null;

private $error = null;
 
Back
Top