Payment Button
These docs are no longer maintained. The Afterpay Android SDK guides have moved to the Cash App Afterpay developer docs for US merchants, and the Afterpay developer docs for other regions.
Table of contents
The payment button may be added to your layout and scaled to suit the needs of your app but to maintain legibility the width must not exceed 256dp.


Button Text
The button may be styled with different text to suit some common purchasing scenarios:
- Pay Now
- Buy Now
- Checkout with
- Place order with
Attributes
app:afterpayColorScheme="blackOnMint|mintOnBlack|blackOnWhite|whiteOnBlack"
app:afterpayButtonText="payNow|buyNow|checkout|placeOrder"