Offerwall Integration Postback

  • Hallo zusammen,


    ich und mein Programmierer haben ein Problem, deswegen habe ich mir gedacht ich frage euch einfach mal.


    Wir wollen in unsere App (Bitcoin Grabber) Offerwalls integrieren sodass User dort Punkte sammeln können.


    Nun brauchen wir aber ein Postback.


    Wannads gibt dieses Beispiel hier. Gibt es eine Möglichkeit dies direkt in die App zu integrieren? oder benötigen wir einen Server? Was sagt ihr dazu? Mein Programmierer hat leider wenig Ahnung vom Backend und der einzige den ich dafür gefunden habe will 500$ dafür. Soviel Geld habe ich leider nicht zur Verfügung.


    Vielleicht kann mir einer von euch weiterhelfen?


    The following example is not a working one but should be enough to understand who you should implement your postback in your site/app.


    <?php


    $secret = ""; // check your app info at http://www.wannads.com
    $userId = isset($_GET['subId']) ? $_GET['subId'] : null;
    $transactionId = isset($_GET['transId']) ? $_GET['transId'] : null;
    $points = isset($_GET['reward']) ? $_GET['reward'] : null;
    $signature = isset($_GET['signature']) ? $_GET['signature'] : null;
    $action = isset($_GET['status']) ? $_GET['status'] : null;
    $ipuser = isset($_GET['userIp']) ? $_GET['userIp'] : "0.0.0.0";


    // validate signature
    if(md5($userId.$transactionId.$points.$secret) != $signature)
    {
    echo "ERROR: Signature doesn't match";
    return;
    }


    if($action == 2) // action = 1 CREDITED // action = 2 REVOKED
    {
    $points = -abs($points);
    }


    if(isNewTransaction($transactionId)) // Check if the transaction is new
    {
    processTransaction($userId, $points, $transactionId);
    echo "OK";
    }
    else
    {
    // If the transaction already exist please echo DUP.
    echo "DUP";
    }


    ?>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!