Products
Our Platform
Developers
Sectors
Pricing
Consumers
Contact
About

Integrate Strong Customer Authentication

Authenticate customers and transactions with just their face or fingerprint.

Try it out

This will make a real payment of £1.
All money we receive will be donated to help those effected by the Australian bush fires.

Step 1

Add our SDK

Add our payment SDK to the HTML header of your web page


<script src="https://sdk.citizen.is/sdk/sdk.js"></script>

Step 2

Initialise the SDK

This sets up the sign-in/authentication modal


<script>

window.citizenAsyncInit = function () {
CITIZEN.init({
loginType: 'citizenLogin'
})
};

</script>

Step 3

Provide a callback function

On successful authentication, this function will be run.

In most scenarios, this will simply set a cookie and redirect.


<script>

let citizenSignInCallback = function(response) {
window.location.replace('/demo/loggedin/');
}

</script>

Step 4

Add the Citizen Sign-in button

Adding a button with an onClick function is enough for most scenarios.




<script>
let signIn = function() {
window.CITIZEN.login(citizenSignInCallback);
}
</script>