Register for your free account! | Forgot your password?

You last visited: Today at 02:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



payop

Discussion on payop within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2017
Posts: 128
Received Thanks: 23
payop

i had used superrewards before but it seems it wont work anymore

so iam trying to add payop payment option to my website

Code:
<?php
#--- Error reporting ---#
	error_reporting(-1);

#--- Include settings ---#
	include("./_settings.php");
	
#--- Timezone status ---#
	date_default_timezone_set("AFRICA/CAIRO");
	
$SECRET_KEY     = ""; // secret for my app
$transaction_id = $_REQUEST['id'];
$user_id        = $_REQUEST['uid'];
$offer_id       = $_REQUEST['oid']; // completed offer or payment method
$new_currency   = $_REQUEST['new'];
$hash_signature = $_REQUEST['sig'];

$hash = md5($transaction_id.':'.$new_currency.':'.$user_id.':'.$SECRET_KEY);
if ($hash != $hash_signature) {
  // signature doesn't match, respond with a failure
  echo "0 invaid hash\n"; 
  exit;
}
// all good!  
#--- Database connection ---#
	mssql_connect($serverIp, $userName, $password) or die("0 db connection error\n");
	
#--- Select Database ---#
	mssql_select_db($dbName1) or die("0\n");
	
#--- Filter ---#
	$clean_html = htmlspecialchars($user_id);
	$clean_sql = str_replace("'", "", $clean_html);
			
#--- INSERT SILK, NEW METHOD MAKAVELI PROZ0R ---#
	mssql_query(" exec CGI.CGI_WebPurchaseSilk2 1,'$user_id',0,'$new_currency',0") or die("0 error quesry\n");

#--- Log payment ---#
	mssql_select_db($dbName5) or die("0 error log\n");
	VALUES('$clean_sql', '$new_currency', '$date')");

	
	
		
log("User $clean_sql purchased $new_currency coins using $offer_id (txn: $transaction_id)\n");
echo "1\n";
?>
this my superrewards ipn , any help editing it ?


heres the template code
Code:
	<form action="/Payop.php" method="POST">
		<div class="form-group">
			<center><h4><font color="white" size="3px">PayOp *</font></h4></center>
				<select class="form-control" name="amount" style="color:yellow ; background: rgba(0,0,0,4.0) ; width: 500px; height: 40px; margin: 25px auto;">
				<option value="1">$1 -> 100 Silk </option>
				<option value="10">$10 -> 1000 Silk </option>
				<option value="20">$20 -> 2100 Silk </option>
				<option value="30">$30 -> 3100 Silk </option>
				<option value="40">$40 -> 4400 Silk </option>
				<option value="50">$50 -> 5500 Silk </option>
				<option value="100">$100 -> 11000 Silk </option>
				<option value="200">$200 -> 25000 Silk </option>
			</select>
		</div>	

		<input type="hidden" name="jid" value="{{ user.getId() }}" />
		<input type="hidden" name="email" value="{{ user.getEmail() }}" />
		<center><input class="btn btn-lg btn-warning" type="submit"></center>
	</form>
develmax is offline  
Old 04/13/2020, 22:27   #2
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,866
Received Thanks: 4,684
Devsome is offline  
Thanks
2 Users
Old 04/13/2020, 22:37   #3
 
elite*gold: 0
Join Date: Feb 2017
Posts: 128
Received Thanks: 23
Quote:
Originally Posted by Devsome View Post
i have read it ^^ didnt manage to make it work
develmax is offline  
Thanks
1 User
Old 04/13/2020, 22:44   #4
 
sigel123456789's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 327
Received Thanks: 55
Quote:
Originally Posted by develmax View Post
i have read it ^^ didnt manage to make it work
+11111111111
sigel123456789 is offline  
Old 04/13/2020, 23:33   #5
 
Ryotic's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 460
Received Thanks: 121
Quote:
Originally Posted by develmax View Post
i had used superrewards before but it seems it wont work anymore

so iam trying to add payop payment option to my website

Code:
<?php
#--- Error reporting ---#
	error_reporting(-1);

#--- Include settings ---#
	include("./_settings.php");
	
#--- Timezone status ---#
	date_default_timezone_set("AFRICA/CAIRO");
	
$SECRET_KEY     = ""; // secret for my app
$transaction_id = $_REQUEST['id'];
$user_id        = $_REQUEST['uid'];
$offer_id       = $_REQUEST['oid']; // completed offer or payment method
$new_currency   = $_REQUEST['new'];
$hash_signature = $_REQUEST['sig'];

$hash = md5($transaction_id.':'.$new_currency.':'.$user_id.':'.$SECRET_KEY);
if ($hash != $hash_signature) {
  // signature doesn't match, respond with a failure
  echo "0 invaid hash\n"; 
  exit;
}
// all good!  
#--- Database connection ---#
	mssql_connect($serverIp, $userName, $password) or die("0 db connection error\n");
	
#--- Select Database ---#
	mssql_select_db($dbName1) or die("0\n");
	
#--- Filter ---#
	$clean_html = htmlspecialchars($user_id);
	$clean_sql = str_replace("'", "", $clean_html);
			
#--- INSERT SILK, NEW METHOD MAKAVELI PROZ0R ---#
	mssql_query(" exec CGI.CGI_WebPurchaseSilk2 1,'$user_id',0,'$new_currency',0") or die("0 error quesry\n");

#--- Log payment ---#
	mssql_select_db($dbName5) or die("0 error log\n");
	VALUES('$clean_sql', '$new_currency', '$date')");

	
	
		
log("User $clean_sql purchased $new_currency coins using $offer_id (txn: $transaction_id)\n");
echo "1\n";
?>
this my superrewards ipn , any help editing it ?


heres the template code
Code:
	<form action="/Payop.php" method="POST">
		<div class="form-group">
			<center><h4><font color="white" size="3px">PayOp *</font></h4></center>
				<select class="form-control" name="amount" style="color:yellow ; background: rgba(0,0,0,4.0) ; width: 500px; height: 40px; margin: 25px auto;">
				<option value="1">$1 -> 100 Silk </option>
				<option value="10">$10 -> 1000 Silk </option>
				<option value="20">$20 -> 2100 Silk </option>
				<option value="30">$30 -> 3100 Silk </option>
				<option value="40">$40 -> 4400 Silk </option>
				<option value="50">$50 -> 5500 Silk </option>
				<option value="100">$100 -> 11000 Silk </option>
				<option value="200">$200 -> 25000 Silk </option>
			</select>
		</div>	

		<input type="hidden" name="jid" value="{{ user.getId() }}" />
		<input type="hidden" name="email" value="{{ user.getEmail() }}" />
		<center><input class="btn btn-lg btn-warning" type="submit"></center>
	</form>
CGI.CGI_WebPurchaseSilk2 check this procadur at your db
Ryotic is offline  
Thanks
1 User
Old 04/13/2020, 23:40   #6
 
elite*gold: 0
Join Date: Feb 2017
Posts: 128
Received Thanks: 23
Quote:
Originally Posted by Ryotic View Post
CGI.CGI_WebPurchaseSilk2 check this procadur at your db
this is ipn of superrewards i just want someone edit it to match payop parameters
develmax is offline  
Old 09/09/2020, 18:59   #7
 
[Daddy]'s Avatar
 
elite*gold: 0
Join Date: Sep 2020
Posts: 13
Received Thanks: 16
its works good guys ?
[Daddy] is offline  
Closed Thread


Similar Threads Similar Threads
[request] payop script
04/03/2020 - SRO Private Server - 1 Replies
does anyone have payop script ?



All times are GMT +1. The time now is 02:13.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.