A one-screen demo app that integrates the Busha Pay Android SDK: a product, a Pay button, and a line that reports the checkout result.
It's wired as the :example module of the android/ Gradle project and
depends on :pay-android directly (implementation(project(":pay-android"))),
so it always builds against the SDK source in this repo.
- Open the
android/directory in Android Studio, or use the CLI below. - Put your sandbox public key in
ExampleApp.kt(PUBLIC_KEY) — grab one from dash.busha.io → Settings → Developer Tools. - Build and install on a device or emulator:
cd android
./gradlew :example:installDebug- Initialization —
BushaPay.initialize(...)inExampleApp. - Checkout —
BushaPay.checkout(...)and result handling inStoreActivity. - Callback wiring — the
${applicationId}.busha-payintent filter inAndroidManifest.xmlplusBushaPay.handleDeepLink(...)inonCreate/onNewIntent.
With the app running:
adb shell am start -a android.intent.action.VIEW \
-d "co.busha.pay.example.busha-pay://callback?status=completed&paymentRequestId=PAYR_test"The app returns to the foreground and the status line shows the
delivered Success result.