Repository navigation
DID-10021: WordPress plugin 0.3.4: liveness camera fails on Android (dampfelix.ch), works on iPhone - #12
Open
botinc-agent[bot] wants to merge 3 commits into
Open
DID-10021: WordPress plugin 0.3.4: liveness camera fails on Android (dampfelix.ch), works on iPhone#12botinc-agent[bot] wants to merge 3 commits into
botinc-agent[bot] wants to merge 3 commits into
Conversation
added 3 commits
November 3, 2026 11:54
… escape Two plugin-side failures trap an Android shopper whose liveness step cannot open the camera inside the embedded flow: - rest_create_session() creates a new Didit session on every retry and check_rate_limit() runs before any reuse, so a guest gets three sessions and then a 429 for the rest of the hour. - The plugin only offers modal and embedded display modes, so there is no documented way to continue on the hosted page when the frame cannot reach the camera. Add failing regression tests for both, plus a guard that the bundled SDK keeps delegating camera and microphone to its modal and embedded frames.
…dampfelix.ch), works on iPhone
…dampfelix.ch), works on iPhone
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.
Problem
Android shoppers at dampfelix.ch cannot open the liveness camera inside the plugin's frame, and the plugin then blocks their recovery. Every retry created another Didit session (the duplicate-session warning) and spent the guest limit of 3 per hour, so a later attempt returned
rate_limit(429). Opening the hosted page at the top level, Didit's documented escape for a blocked iframe camera, was not available: display modes were modal and embedded only.The camera denial itself is not reproducible here: this repository has no hosted-flow code, and it needs the customer's
Permissions-Policyheader and a failed Android console log.Solution
[didit_verify mode="redirect"]and the checkout buttons. Each button follows the mode it was rendered with, so a shortcode's ownmodestill overrides the site setting.Verification
php -l,node --checkandgit diff --checkare clean.🤖 Generated with Claude Code
Visual proof
The Display Mode setting as a shop owner sees it, before and after this change. Sandbox has no WordPress install, so each image renders the plugin's own settings field inside a static copy of the admin card styling.
The redirect flow itself (leaving checkout for the hosted page, then confirming the result on return) needs a live Didit session and an Android device, so it is covered by the tests instead of a screenshot.