I want to hire a pro php coder who have knowledge in java , php , etc
who will be able to do fixes to my website and integrate the paymentwall.com widget into my donation page + the pingback script for it for the IPN system to work.
I pay really good money and wish to work on long term.
Find me on hellsblade@live.com
its an urgen matter as i gotta switch to paymentwall by monday !
this is an example of the pingback thing i need to work with on my site for the paymentwall system to work:
the script does not work because of the sprintf , as it must be ms_sql query to update the db correctly
please contact me asap if you are ready for a good job
who will be able to do fixes to my website and integrate the paymentwall.com widget into my donation page + the pingback script for it for the IPN system to work.
I pay really good money and wish to work on long term.
Find me on hellsblade@live.com
its an urgen matter as i gotta switch to paymentwall by monday !
this is an example of the pingback thing i need to work with on my site for the paymentwall system to work:
Code:
<?php
/**
* @author lol32
* @copyright 2011
*/
define('SECRET_KEY' , '');
define('APP_KEY' , '');
class paymentwall
{
private function generateSignature($params, $secret)
{
// Work with sorted data
ksort($params);
$baseString = '';
foreach($params as $key => $value)
{
$baseString .= $key . '=' . $value;
}
$baseString .= $secret;
return md5($baseString);
// Secret Key
$secret = 'SECRET_KEY';
// $_GET params
$params = array(
'key' => 'APP_KEY',
'uid' => '"'.$_GET['account'].'"',
'sign_version' => '2');
//Generate sign param
$params['sign'] = $this->generateSignature($params, $secret);
// Get build query
$url = 'hhtps://wallapi.com/api/ccwall';
echo $url . '?' . http_build_query($params);
echo $params['sign'];
}
private function checkIPwhitelist($ip)
{
// Whitelist of IP's
$whitelist = array(
'66.220.10.2',
'66.220.10.3',
'174.36.92.186',
'174.36.96.66',
'174.36.92.187',
'174.36.92.192',
'174.37.14.28');
// Check if IP is in array and if signature is correct
//if (in_array($_SERVER['REMOTE_ADDR'], $whitelist) && ($this->generateSignature()))
return $whitelist;
//return false;
}
public function payment()
{
if (in_array($_SERVER['REMOTE_ADDR'], $this->checkIPwhitelist($ip)) && ($this->generateSignature($params, $secret)))
{
if($code == 2)
sprintf("UPDATE damn_users SET dpoints = 'dpoints' + %d where account = %s", $dpoints_charge, $_GET['account']);
else
sprintf("UPDATE damn_users SET dpoints = 'dpoints' + %d where account = %s", $dpoints_purchase, $_GET['account']);
}
}
}
// Initialize class
$paymentwall = new paymentwall();
?>
the script does not work because of the sprintf , as it must be ms_sql query to update the db correctly
please contact me asap if you are ready for a good job
You must be registered to see links