So i've done the callback URL on all the sites, I've matched the Vote ID URLs.
Yet not one of the sites clears on the script (turns green and allows you to move to reward choice)
This is what happens when i type in my callback URL
Screenshot by Lightshot
Here's the code from motivote script file callback.php, do I need to change anything to not get "invalid callback"
Code:
<?php
require('init.php');
$auth = false;
$data = '';
if (count($_GET) > 0) {
// scan get and post variables for our incentive string
foreach ($_GET as $key => $value) {
$auth = mv_incentive_array($value);
if (is_array($auth)) {
break;
}
}
foreach ($_POST as $key => $value) {
$auth = mv_incentive_array($value);
if (is_array($auth)) {
break;
}
}
// if we found it in our get/post then go ahead and process it.
if (is_array($auth)) {
if ($auth['hash'] != $mvsecurityhash) {
die('Invalid hash.');
}
//print_r($auth);
$res = mv_update_vote(intval($auth['id']), $_SERVER['REMOTE_ADDR'], json_encode($_GET).json_encode($_POST));
if (!$res) {
echo('Fail. Query issue.');
}
else {
echo('Success!');
}
}
else {
echo('Invalid callback.');
}
}