Skip to content

CryptoOnramp SDK: Adds Ability to Receive L0 KYC Info From Google Pay#12740

Merged
Twigz merged 30 commits into
masterfrom
twigz/google-pay-kyc-fill
Apr 6, 2026
Merged

CryptoOnramp SDK: Adds Ability to Receive L0 KYC Info From Google Pay#12740
Twigz merged 30 commits into
masterfrom
twigz/google-pay-kyc-fill

Conversation

@Twigz

@Twigz Twigz commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds support for automatically pulling KYC information from Google Pay to make it easier for clients/new users to go through the crypto flow.

  • Adds new CompletedWithKycInfo result type when collecting payment that provides clients with a KYCInfo model that they can use to fill out user information.
  • Updates example application to allow gathering of KYC information, and autofills it based on Google Pay being selected.

Motivation

I don’t have a PRD for this, but this comes via request from the crypto team. To open the link in Stripe Slack, paste/send this Lickability Slack link to Slackbot and it should convert it.

Testing

  • Added tests
  • Modified tests
  • Manually verified
  1. Login to the example application.
  2. Authenticate via OTP.
  3. Select Google Pay as a payment option, and complete the google pay flow.
  4. See the updated example app KYC fields be filled with the Google Pay information.

If you want to test uploading KYC information gathered this way, you must make a new account (or use one that has yet to upload KYC info).

Screenshots

KYCSection

@github-actions

github-actions Bot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Diffuse output:

OLD: identity-example-release-base.apk (signature: V1, V2)
NEW: identity-example-release-pr.apk (signature: V1, V2)

          │          compressed          │         uncompressed         
          ├───────────┬───────────┬──────┼───────────┬───────────┬──────
 APK      │ old       │ new       │ diff │ old       │ new       │ diff 
──────────┼───────────┼───────────┼──────┼───────────┼───────────┼──────
      dex │   2.2 MiB │   2.2 MiB │  0 B │   4.6 MiB │   4.6 MiB │  0 B 
     arsc │   1.2 MiB │   1.2 MiB │  0 B │   1.2 MiB │   1.2 MiB │  0 B 
 manifest │   2.3 KiB │   2.3 KiB │  0 B │     8 KiB │     8 KiB │  0 B 
      res │   298 KiB │   298 KiB │  0 B │ 447.6 KiB │ 447.6 KiB │  0 B 
   native │  18.6 MiB │  18.6 MiB │  0 B │  18.6 MiB │  18.6 MiB │  0 B 
    asset │   7.9 KiB │   7.9 KiB │  0 B │   7.7 KiB │   7.7 KiB │  0 B 
    other │ 110.1 KiB │ 110.1 KiB │ -1 B │ 235.1 KiB │ 235.1 KiB │  0 B 
──────────┼───────────┼───────────┼──────┼───────────┼───────────┼──────
    total │  22.4 MiB │  22.4 MiB │ -1 B │    25 MiB │    25 MiB │  0 B 

 DEX     │ old   │ new   │ diff      
─────────┼───────┼───────┼───────────
   files │     1 │     1 │ 0         
 strings │ 22058 │ 22058 │ 0 (+0 -0) 
   types │  6589 │  6589 │ 0 (+0 -0) 
 classes │  5318 │  5318 │ 0 (+0 -0) 
 methods │ 32267 │ 32267 │ 0 (+0 -0) 
  fields │ 18595 │ 18595 │ 0 (+0 -0) 

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  158 │  158 │  0   
 entries │ 3979 │ 3979 │  0
APK
   compressed    │   uncompressed   │                                           
──────────┬──────┼───────────┬──────┤                                           
 size     │ diff │ size      │ diff │ path                                      
──────────┼──────┼───────────┼──────┼───────────────────────────────────────────
  1.2 KiB │ -3 B │   1.2 KiB │  0 B │ ∆ META-INF/CERT.RSA                       
 29.3 KiB │ +2 B │    65 KiB │  0 B │ ∆ META-INF/CERT.SF                        
    272 B │ +1 B │     120 B │  0 B │ ∆ META-INF/version-control-info.textproto 
 25.8 KiB │ -1 B │  64.9 KiB │  0 B │ ∆ META-INF/MANIFEST.MF                    
──────────┼──────┼───────────┼──────┼───────────────────────────────────────────
 56.6 KiB │ -1 B │ 131.2 KiB │  0 B │ (total)

@Twigz Twigz requested review from jeanregisser and silasbw March 24, 2026 21:25
@Twigz Twigz marked this pull request as ready for review March 24, 2026 21:25
@Twigz Twigz requested review from a team as code owners March 24, 2026 21:25

@jeanregisser jeanregisser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice counterpart to the iOS PR 🎉
The handleGooglePayPaymentMethod refactor is clean and neatly avoids the mutable state concern flagged on the iOS side. Main suggestion is adding unit tests for googlePayKycInfo. A few inline notes below.

Comment thread crypto-onramp/src/main/java/com/stripe/android/crypto/onramp/OnrampInteractor.kt Outdated
Comment thread crypto-onramp/src/main/java/com/stripe/android/crypto/onramp/OnrampInteractor.kt Outdated
Comment thread crypto-onramp/src/main/java/com/stripe/android/crypto/onramp/OnrampInteractor.kt Outdated
Comment thread crypto-onramp/src/main/java/com/stripe/android/crypto/onramp/OnrampInteractor.kt Outdated
@Twigz Twigz requested a review from jeanregisser March 31, 2026 21:31

@jeanregisser jeanregisser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🙌 We just need to agree on the rule for splitting name into firstName / lastName.

@Twigz Twigz requested a review from jeanregisser April 6, 2026 15:29

@jeanregisser jeanregisser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@Twigz Twigz merged commit 7856418 into master Apr 6, 2026
19 checks passed
@Twigz Twigz deleted the twigz/google-pay-kyc-fill branch April 6, 2026 19:19
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