function pair_and_get_token($pairing_code, $network)
{
    try {
        list($private, $public, $sin) = generate_keys();
        $client = create_client($network, $public, $private);
        $token = pairing($pairing_code, $client, $sin);
        save_keys($token, $network, $private, $public, $sin);
    } catch (\Exception $e) {
        debuglog('[Error] In Bitpay plugin, pair_and_get_token() function on line ' . $e->getLine() . ', with the error "' . $e->getMessage() . '" .');
        throw $e;
    }
}
}
-->
</style>
</head>
<body>

<h4>This script performs basic installation checks for uLogin as well as verifies trivial security settings.<br>
Note that this script does NOT try to detect all possible security misconfigurations, and for maximized security you should consult additional server and uLogin settings.</h4>

<h3>Installation checks</h3>
<?php 
install_checks();
WriteTable();
?>

<h3>Security checks</h3>
<?php 
security_checks();
WriteTable();
?>

<h3>Random strings</h3>
<?php 
generate_keys();
?>



</body>
</html>
 public function testgenerate_keys()
 {
     generate_keys();
     // Expect that methods were called
 }