=== Offerwall.GG ===
Contributors: offerwallgg
Tags: offerwall, rewards, points, mycred, gamipress
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show the Offerwall.GG offerwall on any page and reward your users automatically.

== Description ==

Your users complete offers, surveys and tasks. You earn from every one, and the plugin credits their reward to the points system you already run:

* myCRED (any point type)
* GamiPress (any points type)
* WooCommerce Points and Rewards
* or a built-in balance, if you have none of those

Reversed offers are taken back automatically, and the same reward is never credited twice.

== Installation ==

1. Upload the plugin and activate it.
2. On offerwall.gg, create a placement under Publisher → Apps & placements.
3. Copy the placement's public key and secret key into Settings → Offerwall.GG.
4. Copy the Postback URL from Settings → Offerwall.GG into the placement's Postback URL field.
5. Press "Send test postback" on the placement. It should answer OK.
6. Put `[offerwall_gg]` on a page.

Set the placement's currency name and exchange rate to match your points. GamiPress and WooCommerce count whole points, so pick a rate where one reward is at least 1 point.

== Frequently Asked Questions ==

= Which user gets the reward? =

The logged-in user who opened the wall. The link is signed, so a user cannot open the wall as somebody else.

= What happens when an offer is reversed? =

Offerwall.GG sends the same transaction again as "reversed". The plugin takes back exactly what it credited, once.

= Shortcodes =

`[offerwall_gg height="900"]` shows the wall. `[offerwall_gg_balance]` shows the logged-in user's balance.

= Hooks =

`offerwall_gg_credited( $user_id, $amount, $transaction_id, $system )` and `offerwall_gg_reversed( ... )` fire after a reward is credited or taken back.

== Changelog ==

= 1.0.0 =
* First release.
