Device fingerprinting uniquely tracks and identifies devices used for transacting on your shopping site, increasing your protection from fraud.
Follow this step-by-step guide to implement device fingerprinting on your existing Native API integration.
Place the following script just before the closing
</body> tag on all public-facing pages of your shopping site. The script loads asynchronously and does not affect page load time. We recommend that you load the script on all public user-facing pages. If you are unable to load the script on pages such as payment, login, etc, make sure to have loaded the script at least once before the checkout process is complete.
For testing, change the URL to
data-order-session-id with a unique session ID for the current shopper's checkout attempt. The session ID must be less than 128 characters and can only contain the following characters:
- Upper and lowercase English letters (a-z, A-Z)
- Digits (0-9)
- Underscore (_)
- Hyphen (-)
When your shopper is ready to make a payment, call Confirm a PaymentIntent API using the value of
data-order-session-id in the
device_data.device_id parameter in the request body.