androidgoogle-pay

How to test Google Pay flow on android app with googles test card suite


Currently I am trying to use a test creditcard from Googles Test Card Suite in the native Google Pay App.

Currently all I get is a native gpay popup, which shows a "add a payment method", after clicking the google pay button. On Web on the other hand I see multiple test creditcards after clicking on the Pay with Google button with the same account. The calling app is set up with the test flag

        val walletOptions = Wallet.WalletOptions.Builder()
                .setEnvironment(WalletOptions.ENVIRONMENT_TEST)
                .build()

Am I not able to use those card with the native gpay app?


Solution

  • The Google Pay API now supports test cards from your PSPs. Add configuration for your payment gateway under the tokenizationSpecification parameter, when you use Google Pay in TEST mode and you'll be able to complete successful and filed payment flows.