Register for your free account! | Forgot your password?

You last visited: Today at 08:26

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

Advertisement



[web] donate

Discussion on [web] donate within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
[web] donate

hey guys i wanna make a donate page
how to make a page that players can get silk from after paying throw paypall cashu what ever
B13. is offline  
Old 10/31/2015, 16:13   #2
 
elite*gold: 0
Join Date: Apr 2015
Posts: 1,444
Received Thanks: 1,373
Paypal:(IPN)
--- Original coded by me.
PHP Code:
<?php
#--- Error reporting ---#
    
error_reporting(-1);
    
#--- Timezone status ---#
    
date_default_timezone_set("Europe/Stockholm");
    
#--- read the post from PayPal system and add 'cmd' ---#
    
$req 'cmd=_notify-validate';
    foreach (
$_POST as $key => $value) {
        
$value urlencode(stripslashes($value));
        
$req .= "&$key=$value";
}

#--- Post back header ---#
    
$header "POST /cgi-bin/webscr HTTP/1.0\r\n";
    
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
    
$header .= "Content-Length: " strlen($req) . "\r\n\r\n";

#--- Fscoket open shit ---#
    
$fp fsockopen ('ssl://www.paypal.com'443$errno$errstr30);

#--- Database connection ---#
    
mssql_connect("IP""sa""password") or die("ERROR ON LINE 24");

#--- CHECK LEGIT PAYMENTS ---#
    
if (!$fp) {
        echo 
"SSL certification is not loaded correctly.";
    } else {
    
fputs ($fp$header $req);
    
    while (!
feof($fp)) {
        
$res fgets ($fp1024);
    
#--- Not sure yet -___- ---#
    
if (strcmp($res"VERIFIED") == 0) {

#--- Payment seem to be verified ---#
    
$date date('Y-m-d H:i:s');
    
$email $_POST['payer_email'];
    
$item_name $_POST['item_name'];
    
$option_name1 $_POST['option_selection1'];
    
$payment_status $_POST['payment_status'];
    
$payer_status $_POST['payer_status'];
    
$first_name $_POST['first_name'];
    
$last_name $_POST['last_name'];
    
$item_number $_POST['item_number'];

#--- MICKE WAS HERE ---#
        #--- If payment is accepted ---#
         
if($payment_status == "Completed"){
        
#--- Select Database ---#
            
mssql_select_db("SUPERMAN") or die("ERROR ON LINE 57");
            
        
#--- INSERT SILK, NEW METHOD MAKAVELI PROZ0R ---#
            
mssql_query("EXEC [SUPERMAN].[dbo].[_SilkSystem] '$option_name1','$item_number', 'silk'");
    }
    
#--- Payment is not verified ---#
        
} elseif(strcmp ($res"INVALID") == 0) {
            echo 
'No payment recieved, Are you mad bro?';
        }
    }
}
fclose ($fp);
?>
​Goofie​ is offline  
Thanks
1 User
Old 10/31/2015, 18:18   #3
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,856
Received Thanks: 4,683
Or use this.

Devsome is offline  
Thanks
1 User
Old 11/01/2015, 17:49   #4
 
elite*gold: 0
Join Date: Apr 2015
Posts: 1,444
Received Thanks: 1,373
Quote:
Originally Posted by Devsome View Post
Or use this.


They changed option_name1 to option_selection1
​Goofie​ is offline  
Thanks
1 User
Old 11/01/2015, 18:39   #5
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,856
Received Thanks: 4,683
Quote:
Originally Posted by ​Goofie​ View Post
They changed option_name1 to option_selection1


option_name1 still exist.
It depens on how you are creating your paypal button
Devsome is offline  
Thanks
1 User
Old 11/01/2015, 19:08   #6
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
and the guy with paypal went away
can it be used for onecard / cashU insted ?
B13. is offline  
Old 11/01/2015, 19:50   #7
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
for paymentwall, superreward you can check
KoKsPfLaNzE is offline  
Thanks
1 User
Old 11/02/2015, 02:15   #8
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
thx all
#Request2close#
B13. is offline  
Closed Thread


Similar Threads Similar Threads
Topix_Sro PVP SERVER 110LVL No Donate items // No Donate Silk
06/26/2015 - SRO PServer Advertising - 5 Replies
Topix-Sro Site : Topix Online - Silkroad Online Private Server Download Link ( Full Client ) : https://mega.nz/#!5401Faha!opBtWTmo8s2Hd78GWAebDZj JGMF4Lrbm9F2G0TfvSEc Register : Topix Online - Silkroad Online Private Server Cap: 110 Degree: 11D Races: CH / EU Main city: Jangan
WTS shaiya raven donate set + donate stuff + 300k dp
03/04/2015 - Shaiya Trading - 1 Replies
as title says WTS shaiya raven stuffs or trade for any other server stuff pm me for more info on skype klokis17
KAUFE AUF INSIDE FLYFF DONATE ZEUGS ODER DONATE CHARS
12/11/2012 - Flyff Trading - 3 Replies
Der tietel sagt alles ! Meldete euch bitte per pm oder Skype: adoyyyy Mfg



All times are GMT +1. The time now is 08:28.


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.