JS SDK Playground
Cart page. The Checkout button gets replaced by a Real ID verification CTA (modal mode).Credentials
Find this in your Real ID app under SDK settings.
Customer data (optional)
Options
Theme
Sets theme.verified.button.content
Sets theme.verified.button.url
Add-ons
createFlow() options
Edits here override the form. target is set automatically per scenario.
Your cart
2 items
Vintage Cabernet 2018
Qty 1
$48.00
Single Malt Scotch
Qty 1
$89.00
Subtotal$137.00
Shipping$8.00
Total$145.00
In modal mode, Real ID replaces this button with its own verification CTA.
Install this on your storefront
Generated from the options on the left, with this scenario's real target.
<script src="https://verify.getverdict.com/assets/index.js" defer></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
RealID.createFlow({
target: 'button[name="checkout"]',
mode: "modal",
publicKey: "pk_cc1477b3-494f-466e-930b-eab38b222c75",
rules: {
emailLookup: false
}
});
});
</script>
Works on any site. On Shopify, WooCommerce and BigCommerce storefronts the SDK detects your store and the publicKey can be omitted.