com.google.android.gms.wallet.button
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe Google Pay Button API provides a View to render a dynamic payment button that can be customized.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure the button's theme, type, and other options using \u003ccode\u003eButtonOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eButtonConstants\u003c/code\u003e contains a collection of constants used by the PayButton for themes and types.\u003c/p\u003e\n"],["\u003cp\u003eUsing the API simplifies integrating a payment button into your Android application.\u003c/p\u003e\n"]]],["The document defines components for creating dynamic payment buttons. `ButtonConstants` stores constants for `PayButton` configuration. `ButtonTheme` and `ButtonType` enumerate button appearance options. `ButtonOptions` configures the button, built using `ButtonOptions.Builder`. `PayButton` renders a dynamic payment button view based on the `ButtonOptions` provided, allowing for customization of button behavior and presentation within an Android application.\n"],null,["# com.google.android.gms.wallet.button\n\n### Annotations\n\n|--------------------------------------------------------------------------------------------------------------------|----------------------------------|\n| [ButtonConstants.ButtonTheme](/android/reference/com/google/android/gms/wallet/button/ButtonConstants.ButtonTheme) | An enumeration of button themes. |\n| [ButtonConstants.ButtonType](/android/reference/com/google/android/gms/wallet/button/ButtonConstants.ButtonType) | An enumeration of button types. |\n\n### Classes\n\n|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ButtonConstants](/android/reference/com/google/android/gms/wallet/button/ButtonConstants) | A collection of constants used by PayButton |\n| [ButtonOptions](/android/reference/com/google/android/gms/wallet/button/ButtonOptions) | Define configurations for Android Dynamic Button |\n| [ButtonOptions.Builder](/android/reference/com/google/android/gms/wallet/button/ButtonOptions.Builder) | Builder for building [ButtonOptions](/android/reference/com/google/android/gms/wallet/button/ButtonOptions). |\n| [PayButton](/android/reference/com/google/android/gms/wallet/button/PayButton) | The API creates a View to render a dynamic payment button based on the provided [ButtonOptions](/android/reference/com/google/android/gms/wallet/button/ButtonOptions). |"]]