This guide will show you how to use Veriphone's JS library to add phone number verification to your existing HTML phone field. The result is a field just like this one
Enter a phone number to try it
Adding Veriphone verification to your <input>
field takes 5 minutes. Just Follow these 5 steps:
</body>
tag<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
</body>
tag or right after the jquery script tag<script src="https://cdn.jsdelivr.net/gh/veriphone/js@1.0/veriphone.min.js"></script>
<input>
field. Add to it the class veriphone
and paste the API key you copied in step 1 into the attribute data-key
.<input class="veriphone" data-key="YOUR_KEY_HERE" />
.veriphone{
border: 3px solid #eee;
}
.veriphone.valid{
border-color: #00CC00;
}
.veriphone.not-valid{
border-color: #EE0000;
}