Beispiel #1
0
// Get the status parameter
$status = $_POST['status'];
// Check if there is something posted
if (isset($status) && $status == 'VERIFIED') {
    require_once 'signer.php';
    $signer = new Signer();
    // Initialize parameters array
    $params = array();
    // Add all POST parameters to array for signature comparison
    foreach ($_POST as $key => $value) {
        if (in_array($key, $allowed_keys)) {
            $params[$key] = $value;
        }
    }
    // Validate the signature
    if ($signer->verifySignatures($params, MESSENTE_API_PASSWORD)) {
        ?>

        <!DOCTYPE html>
        <html lang="en">
            <head>
                <title>Success</title>
                <meta charset="utf-8">

                <style>
                    h2 {
                        font-size: 24px;
                        color: #303030;
                        font-weight: 400;
                        margin-top: 30px;
                        text-align: center;