Skip to content

Choose your setup

Documents @snap4id-sdk/app-embed 1.0.0 · @snap4id-sdk/embed-protocol 1.0.0 · @snap4id-sdk/purchase-verifier 1.0.0 · protocol 1.0

Every integration makes two independent choices. You can change either later; the page stays the same.

React Native component Any native app
For React Native / Expo apps Swift / UIKit / SwiftUI, Kotlin / Java, Flutter, other WebView stacks
You write a client config and one screen the host side of the bridge: WebView setup, message handling, store code
Bridge, recovery, delivery done by @snap4id-sdk/app-embed your code, following the bridge protocol
Store purchase built in (expo-iap), or your own store code StoreKit 2 / Play Billing in your app
Start React Native component Any native app

Before Snap4ID releases the files, someone checks the store receipt and unlocks the job. That check always runs on a server, never in your app: an app can be modified, so a check there proves nothing.

Snap4ID checks purchases You check
How the page sends the receipt to Snap4ID, which validates it and unlocks the job a server of yours validates the receipt, then asks Snap4ID to unlock the job with a request signed with your key
Snap4ID needs your store specifics: iOS bundle id, Android package, product ids, Play licensing public key, accepted environments. You send them at onboarding; Snap4ID configures them and holds the signing key an Ed25519 public key (and your product ids)
You run nothing a server: see below
Choose it when you have no backend, or don’t need purchases server-side policy requires checks on your infrastructure, or your backend must own the purchase record
Set up Snap4ID checks purchases one of the two ways below

You check: our ready-made server, or your own backend code?

Section titled “You check: our ready-made server, or your own backend code?”
Our verifier server Your own backend
How you deploy our ready-made verifier server (configuration only); the Snap4ID page sends the receipt to it, it validates it and sends Snap4ID a signed unlock request your app sends the receipt to your server, which checks it (optionally with our verifier library) and calls our unlock API
You write no code: environment variables and two configuration files an endpoint behind your user authentication
Your app the same as when Snap4ID checks hands the receipt to your server (onVerifyPurchase)
Set up You check: our verifier server You check: your own backend

Snap4ID records your choice in your partner configuration, and your app must match it (the React Native component reports trust_mode_mismatch otherwise).

Your app Snap4ID checks You check: our verifier server You check: your own backend
React Native the least code. Quickstart → Snap4ID checks Quickstart → our verifier server Quickstart + onVerifyPurchase → your own backend
Native (iOS / Android / Flutter) your app hands the receipt to the page. Native host → Snap4ID checks the same, the page sends it to your server. Native host → our verifier server your app sends the receipt to your server. Native host → your own backend

Not sure? Let Snap4ID check purchases first: switching later changes only who checks the receipt.