How stripe/stripe-android works
Stripe Android is a client SDK for building payment experiences, from native payment collection through confirmation and, when required, 3DS authentication. The README also documents low-level Stripe API access and Google Pay support. The graph combines those documented capabilities with source-indexed model, networking, and card-entry components; unsampled module internals are represented at their enclosing paths, and connections without explicit evidence are omitted.
Main entry points: android PaymentSheet · CardNumber.kt Card Number · Stripe.kt Stripe Client · TextFieldController.kt Payment Fields
Components 16
Payment UI
- PaymentSheet
paymentsheet/src/main/java/com/stripe/android - Payment Fields
stripe-ui-core/src/main/java/com/stripe/android/uicore/elements/TextFieldController.kt
Payment Core
- Card Number
payments-model/src/main/java/com/stripe/android/cards/CardNumber.kt - Card Brands
payments-model/src/main/java/com/stripe/android/model/CardBrand.kt - Card Ranges
payments-core/src/main/java/com/stripe/android/cards/CardAccountRangeService.kt - Payment Models
payments-core/src/main/java/com/stripe/android/model/PaymentMethod.kt - Stripe Client
payments-core/src/main/java/com/stripe/android/Stripe.kt - API Repository
payments-core/src/main/java/com/stripe/android/networking/StripeApiRepository.kt - Google Pay
payments-core/src/main/java/com/stripe/android/googlepaylauncher
Authentication
- 3DS Service
3ds2sdk/src/main/kotlin/com/stripe/android/stripe3ds2/service/StripeThreeDs2ServiceImpl.kt - 3DS Transaction
3ds2sdk/src/main/kotlin/com/stripe/android/stripe3ds2/transaction/Transaction.kt - Challenge UI
3ds2sdk/src/main/kotlin/com/stripe/android/stripe3ds2/views/ChallengeActivity.kt
Shared SDK
- API Requests
stripe-core/src/main/java/com/stripe/android/core/networking/ApiRequest.kt
Other components
- Merchant App
- Customer
- Stripe API
Connections 14
- Customer → PaymentSheet: enters payment details
README.md - Merchant App → PaymentSheet: presents
README.md - PaymentSheet → Payment Fields: collects details
- Payment Fields → Card Number: accepts card input
- Card Number → Card Brands: identifies brand
payments-model/src/main/java/com/stripe/android/cards/CardNumber.kt - Card Number → Card Ranges: queries ranges
payments-core/src/main/java/com/stripe/android/cards/CardAccountRangeService.kt - PaymentSheet → Stripe Client: confirms payment
README.md - Stripe Client → API Repository: uses repository
payments-core/src/main/java/com/stripe/android/Stripe.kt - API Repository → API Requests: creates requests
- API Requests → Stripe API: sends API request
README.md - PaymentSheet → Google Pay: supports payment
README.md - Stripe Client → 3DS Service: starts authentication
README.md - 3DS Service → 3DS Transaction: creates transaction
- 3DS Transaction → Challenge UI: presents challenge