Skip to main content

Android and Compose demo

Build a native Android storefront that opens the Inttegro payment sheet. The app receives an order ID from your backend—never an API key.

See the flow

These captures show the payment-ready and completed states on Android.

Android
2 steps

React Native and Flutter use these same native payment sheets instead of reimplementing checkout. The Android robot is reproduced from work created and shared by Google and used according to the Creative Commons 3.0 Attribution License.

What you’ll build

  • A Jetpack Compose product screen using Material 3
  • A backend request that returns a finalized order ID
  • Native payment-sheet presentation and lifecycle cleanup
  • Server-side payment verification before fulfillment

Run the demo

Install Android Studio, set the backend URL, and run the app configuration. The released README has the exact steps.

Key files

  1. DemoBackend.kt requests the order ID from your backend.
  2. MainActivity.kt presents the payment sheet and handles the result.

Before you ship

Authenticate calls to your backend. Keep the customer, price, API key, and payment verification on the server.

Next