[web] donate

10/30/2015 16:45 B13.#1
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
10/31/2015 16:13 ​Goofie​#2
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);
?>
10/31/2015 18:18 Devsome#3
Or use this.

11/01/2015 17:49 ​Goofie​#4
Quote:
Originally Posted by Devsome View Post
Or use this.


They changed option_name1 to option_selection1
11/01/2015 18:39 Devsome#5
Quote:
Originally Posted by ​Goofie​ View Post
They changed option_name1 to option_selection1
[Only registered and activated users can see links. Click Here To Register...]

option_name1 still exist.
It depens on how you are creating your paypal button
11/01/2015 19:08 B13.#6
and the guy with paypal went away
can it be used for onecard / cashU insted ?
11/01/2015 19:50 KoKsPfLaNzE#7
for paymentwall, superreward you can check [Only registered and activated users can see links. Click Here To Register...]
11/02/2015 02:15 B13.#8
thx all
#Request2close#