Skip to content

Google Pay does not appear when testEnv = true in embedded payment element #2231

@programmeraditya

Description

@programmeraditya

Describe the bug
Hello, the Google Pay option does not appear when testEnv: true is set. This is needed to complete the Google Pay API integration steps as Google requires screenshots of the app in test environment to enable Google Pay API for the app. When testEnv is set to false, I can see the Google Pay option. The behavior is same in both Stripe Test Mode and Live Mode.

To Reproduce
Steps to reproduce the behavior:

  1. Set testEnv = true
  2. Try on a physical device
  3. Google Pay does not show up

Expected behavior
Google Pay button should have appeared in test mode.

Additional context
Note that it does appear when testEnv is set to false. It disappears and I see this error when I set testEnv = true:

Google Pay API check failed.
Google Play service is not available on this device.
Google account is not signed in on this device.
See https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentsClient#public-taskboolean-isreadytopay-isreadytopayrequest-request for more details.

This error does not show up when testEnv = false.

I am using Samsung S24 FE to test this. I have the Wallet app installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions