• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

Paymentwall Webshop Script

Newbie Spellweaver
Joined
Apr 10, 2009
Messages
23
Reaction score
0
Can someone make it for 2 databases ?
MuOnline & Me_MuOnline , cuz my MEMB_INFO table is in Me_MuOnline.
 
My LanHouse in Brazil!!!!
Joined
Feb 12, 2007
Messages
637
Reaction score
17
Nice, view module in mucore suscefull, version 1.0.8

 
Last edited:
Junior Spellweaver
Joined
May 30, 2009
Messages
137
Reaction score
6
why i get this error "Pingback wasn't successful. Reason: HTTP status code is different from 200"
and paymentwall mailed me that my ping back is not working?
 
Junior Spellweaver
Joined
May 30, 2009
Messages
137
Reaction score
6
You have uncorrect settings or uncorrect Script to Ping Back.

I followed the scripts that was downloaded here & followed the instructions still the same as I can't ping. Is there anything else that I need to edit
In the paymentwall.php??

Error shows:
HTTP/1.0 403 Forbidden
Server: squid/3.1.11
Mime-version: 1.0
Date: Sat, 04 Aug 2012 17:37:49 GMT
Content-type: text/html
 
Last edited:
Junior Spellweaver
Joined
May 30, 2009
Messages
137
Reaction score
6
<?php
//wshconf.php contains secred keys and sqlcfg.inc contains sql connection data
require 'wshconf.php';
require_once 'inc/sqlcfg.inc';


$userId = isset($_GET['uid']) ? $_GET['uid'] : null;
$credits = isset($_GET['currency']) ? $_GET['currency'] : null;
$type = isset($_GET['type']) ? $_GET['type'] : null;
$refId = isset($_GET['ref']) ? $_GET['ref'] : null;
$signature = isset($_GET['sig']) ? $_GET['sig'] : null;
$result = false;

function SignatureGenerator($params, $secret) {
$str = '';
foreach ($params as $k=>$v) {
$str .= "$k=$v";
}
$str .= $secret;
return md5($str);
}

if (!empty($userId) && !empty($credits) && isset($type) && !empty($refId) && !empty($signature)) {

$signatureParams = array('uid' => $userId, 'currency' => $credits, 'type' => $type, 'ref' => $refId);
$signatureCalculated = SignatureGenerator($signatureParams, $webshop['paymentwall']['secret-key']);
$query = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id = '$userId'");
$check = mssql_fetch_row($query);

// check if account is exists
if($check[0])
{
// check if IP is in whitelist and if signature matches
if (in_array($_SERVER['REMOTE_ADDR'], array('174.36.92.186', '174.36.96.66', '174.36.92.187', '174.36.92.192', '174.37.14.28')) && ($signature == $signatureCalculated)) {
$result = true;
if ($type == 2) {
// Deduct credits from user
mssql_query("INSERT INTO Donate (memb___id, currency, type, date) VALUES ('".$userId."', '".$credits."', 'Chargeback', '".date("d-m-Y H:i:s")."')");
mssql_query("UPDATE MEMB_CREDITS SET credits = credits + ".$credits." WHERE memb___id = '".$userId."'");
}
elseif ($type == 0 || $type == 1) {
// Give credits to user
mssql_query("INSERT INTO Donate (memb___id, currency, type, date) VALUES ('".$userId."', '".$credits."', 'Payment', '".date("d-m-Y H:i:s")."')");
mssql_query("UPDATE MEMB_CREDITS SET credits = credits + ".$credits." WHERE memb___id = '".$userId."'");
}
}
}
else
{
$result = false;
echo 'ERROR';
}
}
if ($result) {
echo 'OK';
}

?>
I used this script downloaded from the link. Do i need add anything??
 
Junior Spellweaver
Joined
May 30, 2009
Messages
137
Reaction score
6
Found the problem. My service provider does not support port:80 "http://" & paymentwall.com needs to filled in "http:/" first :(
 
Newbie Spellweaver
Joined
Sep 14, 2013
Messages
14
Reaction score
0
Yes! It's full automated + in database you will have a table where all logs are written...
Username|Time|Credits Recieved
PS: Player receive credits not items


Do you use mu core + mu core webshop module?
Please give me a download link for your site engine and i'll do my best to convert it :)

Please help me setup my payment wall add my skype: venice.dizon2 Im using MFS version 6: link:


TY

Adm Spark
 
Newbie Spellweaver
Joined
Aug 1, 2015
Messages
50
Reaction score
1
I need a guide step by step how to implement this payment, please.
 
Last edited:
Back
Top