Embedding the code πŸ“
It is very easy to integrate UiCheck to your website. Just copy paste the following code and replace the following values :
  • uicheckId: your UiCheck id
  • customerId: the stripe customer ID you want UiCheck to display
  • signature: a signature showing that it is really you making the request to UiCheck servers.
  • livemode:
    • false: customerId is a Stripe test customer
    • true: customerId is a Stripe live customer
<div id="uicheck-embed"></div>
<script>
window.uicheckSettings = {
uicheckId: 'uicheck_id',
customerId: 'stripe_customer_id',
signature: 'signature',
livemode: false
}
</script>
<script src="https://cdn.uicheck.io/uicheck.js" async></script>

Where to find uicheckId

Go to the integration page in the UiCheck dashboard (https://dashboard.uicheck.io/integration)
​

Where to find the customerId

Access customerId in Stripe dashboard

  1. 1.
    Go to the customers section of the Stripe dashboard (https://dashboard.stripe.com/customers)
  2. 2.
    Click on the customer you want to get the customer ID
  3. 3.
    Copy the customer ID (see screenshot below)
You can then use this value as the customerId in UiCheck code snippet.

Accessing the customerId from your database

Normally you should retrieve the customerId from your database when rendering the billing page in your subscription software. The simplest way to do that with an SQL database is to add a column name stripe_customer_id in your user table and put their the stripe customer id of each of your user.
email
name
hashed_password
stripe_customer_id
user one
.... .... ....
cus_GqQ7SyqddqdEU4
user two
.... .... ....
cus_jkQ7SyqddqdEU4
...
​
​
​
Note that you will need to create a Stripe customer id programmatically for each of you users using the Stripe SDK. We have links about this process here:

What is the signature

The signature is a cryptographic mechanism that ensure your customers will only be able to see their billing information. It is a protection against forgery. You generate a different signature for every of your customers. The signature is created with the uicheck_secret. To learn how to generate the signature check the following part of the tutorial:
​
Need more help? Chat with us on Facebook! We will be happy to see how we can help you and improve our doc. If something is not clear we would love to hear about it 😍
Copy link
On this page
Where to find uicheckId
Where to find the customerId
Access customerId in Stripe dashboard
Accessing the customerId from your database
What is the signature