Glossary
Documents @snap4id-sdk/app-embed 1.0.0 · @snap4id-sdk/embed-protocol 1.0.0 · @snap4id-sdk/partner-api 1.0.0 · @snap4id-sdk/purchase-verifier 1.0.0 · protocol 1.0
| Term | Meaning |
|---|---|
| Host app | Your mobile app, which hosts the Snap4ID page in a WebView |
| Page | The Snap4ID web page at https://snap4.id/embed/{partnerId}: capture, preview, order, done screen |
| Bridge | The message channel between the page and your app: JSON envelopes over the WebView’s script messaging. Contract: the bridge protocol |
| Shim | A small script your app injects before the page’s scripts; it defines the bridge globals |
| Component | @snap4id-sdk/app-embed, the React Native implementation of the host side |
| Partner id | Your id at Snap4ID, from onboarding; part of the page URL |
| Job | One photo order. Its id looks like eu-6f1c2b9e-…; it lives for 30 days |
| Order code | Six characters (for example 7K3M9Q) shown to the user and quoted to support |
| Payment ref | A fresh UUID per purchase request; bound into the store purchase so the receipt proves which job it paid |
| Store binding | Where the payment ref goes in the purchase: App Store appAccountToken, Google Play obfuscatedProfileId |
| Receipt | The store’s signed proof of a purchase: a StoreKit 2 JWS, or Play’s purchase data and signature |
| Unlock | Marking a job paid after its receipt was checked; only then are the files released |
| Purchase check | Who checks receipts and unlocks: Snap4ID, or you (our verifier server, or your own backend). The protocol calls it the trust mode, see the bridge protocol |
| Verifier | The service that checks a receipt against your store details and unlocks the job: Snap4ID’s, or our ready-made verifier server run by you |
| Verifier library | @snap4id-sdk/purchase-verifier: the same checks, for your own backend (or as the ready-made server) |
| Partner API | Signed server-to-server API: unlock a job, read a job, webhook keys |
| Finish / consume | Telling the store a consumable purchase is done. Only after the unlock, or a killed app loses it |
| Artifact | One delivered file: the main photo, the print sheet (JPG and PDF), a transparent PNG |
| Done screen | The last page step: all files, the photo only, or none (your app shows the files) |
| Merchant of record | The seller the store pays and the user buys from: you |
