Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment label and amount is visible somewhat randomly #998

Closed
jupblb opened this issue May 9, 2024 · 1 comment
Closed

Payment label and amount is visible somewhat randomly #998

jupblb opened this issue May 9, 2024 · 1 comment

Comments

@jupblb
Copy link

jupblb commented May 9, 2024

Braintree SDK Version

4.41.0

Environment

Sandbox

Android Version & Device

Google Pixel 7

Braintree dependencies

N/A: Using braintree_android only

Describe the bug

When running the Demo from this repository with Google Pay, the Google Pay flow doesn't always show payment label and amount (the horizontal part with "Braintree Demo Payment" string). It's not clear how to configure the GooglePayRequest to always show it.

To reproduce

  1. Open the Demo app
  2. Enter Google Pay
  3. Click the Google Pay button
  4. Cancel payment
  5. Change something in settings
  6. Click the Google Pay button

Expected behavior

The Google Pay flow always shows the "Braintree Demo Payment" label along with the amount and currency.

Screenshots

google-pay-transaction-amount.mp4
@sarahkoop
Copy link
Contributor

Hey @jupblb - You can set the totalPriceLabel on your GooglePayRequest, but whether or not price and label are displayed is determined by the underlying Google Pay API. See their reference docs for totalPrice for more info on when this will be displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants