-1

I'm testing the Android Pay API. I generated the public key by using the command

PaymentMethodTokenizationParameters parameters =
            PaymentMethodTokenizationParameters.newBuilder()
                    .setPaymentMethodTokenizationType(PaymentMethodTokenizationType.NETWORK_TOKEN)
                    .addParameter("publicKey", "Key Here")
                    .build();
Rohit Sharma
  • 167
  • 2
  • 14

1 Answers1

0

Change ENVIRONMENT_TEST to ENVIRONMENT_SANDBOX for WalletFragmentOptions
This is kinda like PAYPAL SANDBOX configuration for testing payments.

CodeWalker
  • 2,281
  • 4
  • 23
  • 50
  • `ENVIRONMENT_SANDBOX` is deprecated. The `Unrecognized app` message is supposed to show: https://developers.google.com/android-pay/tutorial#code_and_test – luoser Jan 09 '17 at 19:55