Skip to content

Sumsub: Feat - Add Device Intelligence support#2224

Open
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:feat/sumsub-device-intelligence-01
Open

Sumsub: Feat - Add Device Intelligence support#2224
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:feat/sumsub-device-intelligence-01

Conversation

@cmgustavo

@cmgustavo cmgustavo commented Jul 10, 2026

Copy link
Copy Markdown
Member

Wires up SumSub Device Intelligence to capture the device and report anti-fraud events for BitPay invoice flows and authentication.

Events reported

  • login / signup — on pairing
  • payment-scanned — when a BitPay invoice is scanned/opened (invoice fiat amount)
  • payment-posted — when an invoice payment is broadcast (crypto amount)
  • Plain crypto sends (non-invoice) are intentionally not tracked.

How it works

The device's unique id (getUniqueId) is sent to the backend as SumSub's sessionId; the backend mints the DI token (getDeviceAccessToken) and receives events (submitDeviceEvent), keeping the SumSub secret key server-side.

Authenticated calls go through the signed RPC; logged-out ones use the public variant. fisherman is init()ed once and re-pointed with updateAccessToken() on later events, since DI tokens are single-use and re-initializing degrades the SDK in RN.

Verified end-to-end on testnet (Android): logged-in events attach to the applicant (skipped:false); anonymous ones return skipped:true (no applicant), as expected.

Note: visitorId is empty until SumSub disables sandbox simulation and provisions a real FingerprintJS key.

@cmgustavo
cmgustavo force-pushed the feat/sumsub-device-intelligence-01 branch from fc89e5e to eec0667 Compare July 10, 2026 19:36
@cmgustavo
cmgustavo marked this pull request as draft July 13, 2026 20:00
@cmgustavo
cmgustavo force-pushed the feat/sumsub-device-intelligence-01 branch 7 times, most recently from ecd4087 to c7bcded Compare July 20, 2026 20:27
@cmgustavo
cmgustavo marked this pull request as ready for review July 20, 2026 20:34
@cmgustavo
cmgustavo force-pushed the feat/sumsub-device-intelligence-01 branch from c7bcded to a36266b Compare July 21, 2026 17:54
@JohnathanWhite

Copy link
Copy Markdown
Collaborator

@cmgustavo
cmgustavo requested a review from JohnathanWhite July 23, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants