Repository navigation
feat: make Google OPC support opt-in - #141
Merged
Merged
Conversation
Member
Author
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
JakubKorytko
marked this pull request as ready for review
December 3, 2026 12:12
chuckdries
approved these changes
Dec 3, 2026
Contributor
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.
Details
getGoogleOpaquePaymentCardSupported()was hardcoded totrue, so everyaddCardToGoogleWallet()call told Google Wallet we can generate the Google OPC and went through UAPP. The backend side of UAPP is gated per card program by a beta and returns 403 when it's off, so an app that can't do UAPP for a given card has no way to fall back to the legacy push provisioning flow.This adds an optional
isGoogleOpaquePaymentCardSupportedtoAndroidCardDataand returns it from the generator. It defaults tofalse: Google Wallet then only asks for the TSP OPC, the generator answers it fromopaquePaymentCardand the payment credentials handler is not called. Apps turn UAPP on per card by passingtrue.The handler stays a required argument of
addCardToGoogleWallet()to keep the API unchanged. The README,docs/UAPP.mdand the example app's dummy card are updated to set the flag.Related Issues
#58
Manual Tests
In
apps/basic-example/android, compile the library module on both architectures:Both succeed. End-to-end provisioning will be tested from the App and Mobile-Expensify PRs below once this is released, since it needs a real card and the backend beta.
Linked PRs