OFFERWALL.GG FOR CLAIMBITS
==========================

Adds the Offerwall.GG offerwall to your ClaimBits site. Users earn offerwall
credits automatically, and their tasks contest points go up the same way they
do for every other offerwall. Reversed offers are taken back automatically.

One file to upload, one block to paste, one button to add.


1. CREATE A PLACEMENT
---------------------

On offerwall.gg go to Publisher -> Apps & placements -> New placement.

  Currency name     Credits (or whatever your site calls offerwall credits)
  Units per USD     how many credits a user gets for every $1 you earn,
                    e.g. 600 if 1,000 credits = $1 on your site and you
                    give users 60%.

  Postback URL      https://YOUR-SITE/system/gateways/offerwallgg.php

Keep the placement page open: you need its public key and secret key.
(If you downloaded this addon while signed in, the keys are already filled in.)


2. THE POSTBACK FILE
--------------------

Upload  system/gateways/offerwallgg.php  from this folder to the same place on
your site. Set $secret at the top to your placement's secret key (if it is not
filled in).


3. THE OFFERWALL PAGE
---------------------

Open  template/default/pages/offers.php
Copy the "case 'offerwallgg':" block from paste-into-offers.php.txt into the
switch, next to the other offerwalls. Set $owggPublic and $owggSecret (if they
are not filled in).

Add the button and, if you like, the menu link. Both are at the bottom of
paste-into-offers.php.txt.


4. TEST IT
----------

On your placement page at offerwall.gg press "Send test postback".
It should answer OK. A test credits nobody.

Then open your Offers page while logged in and press the Offerwall.GG
button. You should see the offers.


WHAT THE ANSWERS MEAN
---------------------

  OK                          credited, reversed, or a test
  DUP                         already credited, nothing changed
  Signature doesn't match     wrong secret key in offerwallgg.php
  Unknown user                the user id does not exist on your site
