Moonetix Offerwall
Moonetix offerwall plugin for WordPress: signed links, verified postbacks, own balance or myCred, GamiPress, TeraWallet.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/moonetix/moonetix-offerwall-wordpress/archive/refs/heads/main.zipMoonetix Offerwall for WordPress
Turn your logged-in users into revenue. No code, no ads in their face: users earn your points by completing offers, you earn for every completed offer.
The official WordPress plugin for Moonetix, a pay-per-result affiliate network. Show the Moonetix offerwall to your logged-in users and credit their rewards automatically, to a built-in balance, myCred, GamiPress, or TeraWallet (WooCommerce wallet).
- No code to write. Blocks and shortcodes for the offerwall, the balance and the reward history, and a one-click Earn page.
- Safe reward crediting. Every postback is checked with HMAC-SHA256 and a constant-time comparison, each transaction is credited once, and a reversal only takes back what was credited.
- Fits your site. Floating Earn button, menu items that open the offerwall in a window, "Who can earn" by user role, page caching support, keys in
wp-config.php. - Built into WordPress. Settings API, Site Health check, dashboard widget, privacy export and erase.
The plugin has been submitted to the WordPress.org plugin directory and is waiting for review.
How it works
sequenceDiagram
participant U as Your user
participant WP as Your WordPress site
participant M as Moonetix
U->>WP: Opens the Earn page (logged in)
WP->>U: Offerwall with a link signed on your server
U->>M: Completes an offer
M->>WP: Signed postback (status 1 credited, 2 reversed)
WP->>WP: Checks HMAC-SHA256, credits once
WP->>U: "+250 Coins" notice and new balance
Requirements
- WordPress 6.3 or newer, PHP 7.4 or newer
- HTTPS
- A free Moonetix publisher account and an approved offerwall for your site: sign up
Install
- Download the latest zip from Releases or from moonetix.com.
- In WordPress, go to Plugins, Add New Plugin, Upload Plugin, choose the zip, and activate it.
- Open Settings, Moonetix Offerwall, and paste your App ID, link hash salt and postback secret key. Each field says where to find it in your Moonetix dashboard.
- Copy the postback URL from the plugin into the Postback page of your Moonetix dashboard, and send a test postback.
- Click Create the Earn page, check the draft, and publish it.
Full setup guide: docs.moonetix.com/wordpress
Shortcodes
| Shortcode | Shows |
|---|---|
[moonetix_offerwall height="900"] |
The offerwall for the logged-in user |
[moonetix_balance] |
The user's balance |
[moonetix_history limit="20"] |
The user's rewards and reversals |
For developers
| Hook | Type | Use |
|---|---|---|
moonetix_offerwall_user_id |
Filter | Change the user ID sent to Moonetix |
moonetix_offerwall_postback_user |
Filter | Map a postback user ID back to a WordPress user |
moonetix_offerwall_can_earn |
Filter | Decide per user who sees the offerwall |
moonetix_offerwall_show_floating |
Filter | Show or hide the floating button on a page |
moonetix_offerwall_postback |
Action | Runs after every verified postback |
moonetix_offerwall_balance_changed |
Action | Runs when the built-in balance changes |
Keys can live in wp-config.php:
define( 'MOONETIX_OFFERWALL_LINK_SALT', '...' );
define( 'MOONETIX_OFFERWALL_POSTBACK_KEY', '...' );
Security
Found a security issue? Please email support@moonetix.com instead of opening a public issue.
Links
Get started
Sign up free at moonetix.com, add your site, and paste the three keys into the plugin. Every publisher application is reviewed by hand, and once approved your site goes live right away.
License
GPLv2 or later. See LICENSE.
