> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.afterpay.com/_mcp/server. # Android SDK The [Afterpay Android SDK](https://github.com/afterpay/sdk-android) presents Afterpay checkout in your Android app and provides prebuilt UI components, such as the payment button and price breakdown. It also lets you accept Cash App Pay through your Afterpay merchant account. ## What the SDK includes ### Checkout The SDK presents checkout in these ways: * [Checkout V2](/afterpay-online-developer/guides/sdk/android-sdk/implementation-guide) (recommended): the SDK shows a loading screen, asks your app for a checkout token from your server, and opens Afterpay checkout. Supports standard and express checkout. * [Afterpay Button](/afterpay-online-developer/guides/sdk/android-sdk/more/afterpay-button): the SDK creates the checkout from your app and returns a one-time virtual card. No server integration. The SDK calls this Checkout V3. * [Cash App Pay](/afterpay-online-developer/guides/sdk/android-sdk/implementation-guide/cash-app-pay): the customer approves the payment in Cash App. * [Checkout V1](/afterpay-online-developer/guides/sdk/android-sdk/more/checkout-v1) (deprecated): your server returns a checkout URL, and the SDK loads it in a web view. Supports standard checkout only. ### UI components The SDK includes prebuilt components that follow Afterpay brand guidelines. Outside the US, they show Afterpay branding, or Clearpay branding for UK merchants. US merchants see Cash App Afterpay branding. * [Payment button](/afterpay-online-developer/guides/sdk/android-sdk/ui-components/payment-button): `AfterpayPaymentButton` starts an Afterpay checkout. * [Logo](/afterpay-online-developer/guides/sdk/android-sdk/ui-components/logo): Shows the Afterpay logo. * [Price breakdown](/afterpay-online-developer/guides/sdk/android-sdk/ui-components/price-breakdown): `AfterpayPriceBreakdown` shows the installment amounts for a price. * [Checkout widget](/afterpay-online-developer/guides/sdk/android-sdk/ui-components/checkout-widget): `AfterpayWidgetView` shows the payment schedule and keeps it in sync with the order total. For branding, color schemes, and accessibility, see [Android UI components](/afterpay-online-developer/guides/sdk/android-sdk/ui-components). ## Requirements * Android 7.0 (API level 24) or later > **WebView support** > > Afterpay checkout runs in a WebView that requires specific browser features. The SDK runs on API level 24, but checkout depends on the WebView version installed on the device, which is independent of the Android version. If your app knows the WebView version, show Afterpay only on supported versions. ## Get started * Follow the [Android implementation guide](/afterpay-online-developer/guides/sdk/android-sdk/implementation-guide) to install the SDK, configure it, and present checkout. * To take your first sandbox payment end to end, see the [Mobile SDK quickstart](/afterpay-online-developer/guides/sdk/quickstart). ## Docs - [Implementation Guide](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/implementation-guide.md) - [Cash App Pay](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/implementation-guide/cash-app-pay.md) - [UI Components](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/ui-components.md) - [Payment Button](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/ui-components/payment-button.md) - [Logo](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/ui-components/logo.md) - [Price Breakdown](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/ui-components/price-breakdown.md) - [Checkout Widget](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/ui-components/checkout-widget.md) - [Afterpay Button](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/more/afterpay-button.md) - [Checkout V1 (Deprecated)](https://developers.afterpay.com/afterpay-online-developer/main/guides/sdk/android-sdk/more/checkout-v1.md)