Register for your free account! | Forgot your password?

You last visited: Today at 14:00

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

Advertisement



help with superrewards

Discussion on help with superrewards within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1

 
Bocc1337's Avatar
 
elite*gold: 737
Join Date: Oct 2007
Posts: 730
Received Thanks: 133
help with superrewards

hello guys iam wanna help with setup superrewards in my site and automatic donate to the player
Bocc1337 is offline  
Old 04/18/2017, 20:40   #2
 
elite*gold: 0
Join Date: Dec 2016
Posts: 50
Received Thanks: 28
Superrewards has their OWN IPN, all you need todo is to add "the silk adding" part into their IPN and you are done.
Drupanda is offline  
Old 04/21/2017, 14:22   #3
 
Ryotic's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 454
Received Thanks: 121
Contact me on skype
Ryotic is offline  
Old 04/22/2017, 17:21   #4

 
Bocc1337's Avatar
 
elite*gold: 737
Join Date: Oct 2007
Posts: 730
Received Thanks: 133
Quote:
Originally Posted by Drupanda View Post
Superrewards has their OWN IPN, all you need todo is to add "the silk adding" part into their IPN and you are done.
can you explain more
Bocc1337 is offline  
Old 04/23/2017, 00:00   #5
 
Snow*'s Avatar
 
elite*gold: 1
Join Date: Nov 2011
Posts: 2,532
Received Thanks: 1,438
Quote:
Originally Posted by legendworld View Post
Contact me on skype
Planning on selling it to him?

postback.php
Code:
<?php

require_once('SRPostbackHandler.class.php');


header('Content-Type:text/plain');

$sr_postback_handler = new SRPostbackHandler("00000000000000000000000000000000");

echo $sr_postback_handler->HandlePostback($_REQUEST['id'], $_REQUEST['uid'], $_REQUEST['oid'], $_REQUEST['new'], $_REQUEST['total'], $_REQUEST['sig']);

// This script will output a status code of 1 (Success) or 0 (Try sending again later).

?>
SRPostbackHandler.class.php
Code:
<?php


class SRPostbackHandler 
{
    function __construct($app_secret) 
    {
        $this->app_secret = $app_secret;
    }

    function HandlePostback($id = 0, $uid = 0, $oid = 0, $new = 0, $total = 0, $sig = 0)
    {
		include_once("../includes/config.php");
        if(!(is_numeric($id) || is_numeric($uid) || is_numeric($oid) || is_numeric($new) || is_numeric($total)))
        return 0;

        $this->id = $id; // ID of this transaction.
        $this->uid = $uid; // ID of the user which performed this transaction. 
        $this->oid = $oid; // ID of the offer or direct payment method.
        $this->new = $new; // Number of in-game currency your user has earned by completing this offer.
        $this->total = $total; // Total number of in-game currency your user has earned on this App.
        $this->sig = $sig; // Security hash used to verify the authenticity of the postback.

        $result = 1;

        $sig_compare = md5($this->id.':'.$this->new.':'.$this->uid.':'.$this->app_secret);

        // Only accept if the Security Hash matches what we have.
        if($this->sig == $sig_compare)
        {

            $sql->Query("UPDATE SK_Silk SET silk_own += '".$this->new."' where JID = '".$this->uid."'; ");

        }
        else
        {
            $result = 0; // Security hash incorrect. Fail.
        }
        
        return $result;
    }

}

?>
This iframe you get from the SR page to add to your donation page
P.S the user must be logged in to obtain an account JID
Code:
<iframe src="https://wall.superrewards.com/super/offers?h=rsihmylmmje.2959566260&uid='.$_SESSION['JID'].'"
		frameborder="0" 
		width="728" height="1700" scrolling="no"></iframe>
Snow* is offline  
Thanks
1 User
Old 04/24/2017, 01:02   #6

 
Bocc1337's Avatar
 
elite*gold: 737
Join Date: Oct 2007
Posts: 730
Received Thanks: 133
Quote:
Originally Posted by Snow* View Post
Planning on selling it to him?

postback.php
Code:
<?php

require_once('SRPostbackHandler.class.php');


header('Content-Type:text/plain');

$sr_postback_handler = new SRPostbackHandler("00000000000000000000000000000000");

echo $sr_postback_handler->HandlePostback($_REQUEST['id'], $_REQUEST['uid'], $_REQUEST['oid'], $_REQUEST['new'], $_REQUEST['total'], $_REQUEST['sig']);

// This script will output a status code of 1 (Success) or 0 (Try sending again later).

?>
SRPostbackHandler.class.php
Code:
<?php


class SRPostbackHandler 
{
    function __construct($app_secret) 
    {
        $this->app_secret = $app_secret;
    }

    function HandlePostback($id = 0, $uid = 0, $oid = 0, $new = 0, $total = 0, $sig = 0)
    {
		include_once("../includes/config.php");
        if(!(is_numeric($id) || is_numeric($uid) || is_numeric($oid) || is_numeric($new) || is_numeric($total)))
        return 0;

        $this->id = $id; // ID of this transaction.
        $this->uid = $uid; // ID of the user which performed this transaction. 
        $this->oid = $oid; // ID of the offer or direct payment method.
        $this->new = $new; // Number of in-game currency your user has earned by completing this offer.
        $this->total = $total; // Total number of in-game currency your user has earned on this App.
        $this->sig = $sig; // Security hash used to verify the authenticity of the postback.

        $result = 1;

        $sig_compare = md5($this->id.':'.$this->new.':'.$this->uid.':'.$this->app_secret);

        // Only accept if the Security Hash matches what we have.
        if($this->sig == $sig_compare)
        {

            $sql->Query("UPDATE SK_Silk SET silk_own += '".$this->new."' where JID = '".$this->uid."'; ");

        }
        else
        {
            $result = 0; // Security hash incorrect. Fail.
        }
        
        return $result;
    }

}

?>
This iframe you get from the SR page to add to your donation page
P.S the user must be logged in to obtain an account JID
Code:
<iframe src="https://wall.superrewards.com/super/offers?h=rsihmylmmje.2959566260&uid='.$_SESSION['JID'].'"
		frameborder="0" 
		width="728" height="1700" scrolling="no"></iframe>
really i dun know what to say to you , really thanks alot
Bocc1337 is offline  
Old 01/13/2019, 00:35   #7

 
Dev.L0RdReVaN's Avatar
 
elite*gold: 355
Join Date: Mar 2009
Posts: 264
Received Thanks: 52
i need help on superreward
Dev.L0RdReVaN is offline  
Old 01/14/2019, 00:31   #8
 
Worshiper's Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 1,081
Received Thanks: 224
Quote:
Originally Posted by Dev.L0RdReVaN View Post
i need help on superreward
check the answer of snow he already gived it
Worshiper is offline  
Reply


Similar Threads Similar Threads
Sponsorpay/Superrewards DR FR
10/19/2012 - Metin2 - 0 Replies
#closerequest Ausversehen auf enter gedrückt beim schreiben. :(
SponsorPay und SuperRewards
03/23/2012 - Metin2 - 17 Replies
Hey Leute ich hab mal eine Frage weiss einer in etwa wvle angebote funken bzw. welche? Danke schonmal :)
SG Superrewards, wie läuft das ab ?
03/20/2012 - Metin2 - 7 Replies
Hey ! Ist es schlimm wen man falsche Daten angibt ?
Probleme mit Superrewards.com
02/22/2011 - CrossFire - 4 Replies
Hallo, ich habe ein problem bei Superrewards.com kann mein SRpoints nicht in Zp umwandeln da steht das es nicht mit meinem Z8games konto verknüpft ist obwohl ich alles gemacht habe was da stand, was nun? http://www6.pic-upload.de/21.02.11/o3xz9p9kog7.pn g Bitte nur Posten wenn du auch weiter weißt.



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


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.