Mobile Integration


Overview

The Paze® mobile components, available for Android and iOS, provide native pre-built button, message UI, and the checkout flow that launches the Paze wallet experience. The components are distributed as source files that you add directly to your project. Contact your Paze Implementation Manager to receive the component package.


Requirements

RequirementValue
Min SDKAPI 24 (Android 7.0)
Target SDKAPI 36
LanguageKotlin 2.0+
UI FrameworksJetpack Compose, XML Views
Required Dependencyandroidx.browser:browser:1.9.0

Add the browser dependency to your module's build.gradle.kts:


dependencies {
    implementation("androidx.browser:browser:1.9.0")
}

The androidx.browser library provides Custom Tabs, which is required for launching the Paze checkout experience.



What's Included

The component package includes pre-built UI and utilities. Both platforms provide equivalent functionality:

ComponentPurposeDetails
Paze ButtonBranded checkout buttonConfigurable color, shape, label, and theme. See Integrate Button.
Paze MessagePromotional offer displayRenders HTML content from the Messages API with automatic styling. See Integrate Messages.
Secure BrowserOpens the Paze walletCustom Tabs (Android) / ASWebAuthenticationSession (iOS)
Callback ParserHandles checkout resultParses the redirect URL and returns structured result data. Optional helper classes.
Brand Style FilesBrand colors and dimensionsPaze Blue, spacing, and corner radii (do not modify)
Sample AppReference implementationDemonstrates end-to-end Express Pay and Review & Pay flows. Contact your Paze Implementation Manager to receive access.

The component package also includes a README with instructions for adding the source files to your project and configuring dependencies. Follow the README to complete your initial project setup, then return to these guides for integration details.


Integration Steps

A typical mobile integration follows these steps:

Step

What to Do

Reference

  1. Add the Paze button

Drop in the button component on your checkout, cart, or product screen

Integrate Button

  1. Configure callback scheme

Register your URL scheme in AndroidManifest.xml or Info.plist

Express Pay Flow, Callback scheme configuration section

  1. Implement checkout flow

Create session on button tap, launch checkout, handle callback, call complete

Express Pay Flowor Review & Pay Flow

  1. Add offer messages (optional)

Fetch messages from your server, pass HTML to the message component

Integrate Messages


Choose a Checkout Flow

FlowIntent ValueBest ForAPI Calls After Callback
Express PayEXPRESS_CHECKOUTFixed pricing, logged-in users, digital goods/complete only
Review & PayREVIEW_AND_PAYGuest checkout, variable shipping/tax, order confirmation needed/review then /complete

See Express Pay Flow and Review & Pay Flow for full integration guides.

Contact your Paze Implementation Manager for example implementations available on Codepen.io.


Architecture

Mobile integrations use a server-to-server pattern. The mobile app never calls the Paze API directly. Your Merchant Server handles OAuth, session management, and payload decryption.


Security

The JWE/JWS payload signature and encryption process is identical for web and mobile integrations. All cryptographic operations (signature validation, JWE decryption) happen server-side on the Merchant Server. The mobile app never handles private keys or decrypts payloads directly.

The only mobile-specific security consideration is the checkout launch mechanism:

Custom Tabs are required for launching the Paze checkout. WebView is not permitted because it lacks the session isolation and cookie handling needed for secure authentication. Custom Tabs run in a separate browser process, providing full TLS/mTLS support and RFC 8252 compliance.


Environments

EnvironmentAuth URLAPI Base URL
CAThttps://auth.wallet.cat.earlywarning.io/tokenhttps://mobile.wallet.cat.earlywarning.io
UAThttps://auth.wallet.uat.earlywarning.io/tokenhttps://mobile.wallet.uat.earlywarning.io
Productionhttps://auth.paze.com/tokenhttps://api.paze.com

To test your integration:

StepAction
1Obtain sandbox credentials from your Paze Implementation Manager
2Configure your Merchant Server with sandbox endpoint URLs
3Run the sample app against sandbox to verify the end-to-end flow
4Test the flow applicable to the integration (e.g. - Express Pay or Review & Pay). Test both if the integration uses both flows
5Verify callback URL scheme handling on each platform
6Test error scenarios (cancelled checkout, expired session, network failure)

Additional Resources

TopicPage
Button placement and design guidelinesButton Guidelines
Button component API and configurationIntegrate Button
Express Pay integration guideExpress Pay Flow
Review & Pay integration guideReview & Pay Flow
Message component API and configurationIntegrate Messages