KYC: Feature - SumSub SDK integration#2165
Open
cmgustavo wants to merge 1 commit into
Open
Conversation
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
3 times, most recently
from
May 12, 2026 20:27
ccdbe11 to
69c9860
Compare
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
5 times, most recently
from
May 21, 2026 13:28
9c14d4a to
bd34d72
Compare
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
from
May 22, 2026 13:09
bd34d72 to
9726f26
Compare
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
8 times, most recently
from
June 5, 2026 14:07
586b5e2 to
cdf165a
Compare
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
7 times, most recently
from
July 23, 2026 18:48
d785663 to
b2556e0
Compare
cmgustavo
marked this pull request as ready for review
July 23, 2026 18:52
cmgustavo
force-pushed
the
feat/sumsub-sdk-integration-01
branch
from
July 24, 2026 17:51
b2556e0 to
ed38fb9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native identity verification (KYC) using the SumSub React Native MobileSDK (
@sumsub/react-native-mobilesdk-module).The backend exposes two signed
/api/v2RPC methods on thebitpayUserfacade (same channel as Device Intelligence'sgetDeviceAccessToken):BitPayIdApi.apiCall)getKycAccessToken{levelName?}nullwhen the user is not eligiblegetKycStatus{}KycStatusTypeobject (path,provider,tier,status,activeAttempt, …)Changes
apiCall('getKycAccessToken', {levelName})— the signed token identifies the user server-side (nouserIdsent). Backend returnsnullfor users with no shopper product / shopper tier 1 / already holding KYC tier ≥1; the app detects this and does not launch the SDK (no error shown).apiCall('getKycStatus')+mapBackendKycStatus, mapping the backend status (notStarted,approved,rejected,requiresAction,inProgress, …) to the app'sSumSubKycStatus. Unknown in-flight review states fall back toPending(safe default). Dispatched on app init (fetchInitialUserData), post-pairing (startPairAndLoadUser), and when the KYC screen opens — so the status survives app restarts and reflects reviews completed outside the app (kycStatusis in the persist blacklist).KycBannerGate), Settings → Security (KycVerification), and Profile /VerifyIdentity.SUMSUB(kycStatusper network); reset on logout.Info.plist.Testing Instructions
Prerequisites
Environment variable — add to your
.env(optional; the backend defaults the level if omitted):Start:
Test Cases
1. Home Banner Entry Point
KycBannerGate).2. Settings Entry Point
KycVerificationscreen) is present and navigates to the flow.3. Profile Entry Point
VerifyIdentityis accessible from theBitpayIdGroupnavigator.4. SDK Launch & Permissions (iOS)
5. Happy Path
SUMSUB.kycStatusupdates and the Home banner reflects the verified state.6. Status Sync (backend authoritative)
getKycStatusre-fetches the authoritative status → the banner/screen reflect it without reopening the SDK.7. Not-Eligible User (null token)
8. Token Refresh
onTokenExpired; the flow continues.9. Cancellation / Error