This section describes how to configure your app to production and start to accept real payment credentials.
Sign your app with release keys
When your app is pointed to the Google Pay API production environment, the Google Pay API returns
405) if the signing key fingerprint
used to sign the Android app doesn't match the release key fingerprint registered with Google Play.
This error typically occurs after an app in development switches from the test environment to the
To resolve this error, make sure that the fingerprint provided to Google matches the fingerprint of the key used to sign the Android app. Once an Android app is signed, you can verify the fingerprint of the key used for signing it with the following commands:
// First extract the META-INF/CERT.RSA from the APK jar -xvf META-INF/CERT.RSA inflated: META-INF/CERT.RSA keytool -printcert -file META-INF/CERT.RSA Certificate fingerprints: MD5: YOUR_MD5_HASH SHA1: YOUR_SHA1_HASH Signature algorithm name: SHA1withRSA
Match the SHA1 fingerprint provided to Google Play.
Configure your app for production
Use the following steps to configure your app for production:
- Make sure that your APK is signed with the release key, not with the debug key you used in the test environment. The debug key doesn't work in the production environment.
- Set the
WalletOptionsenvironment parameter to
Launch your app on the Play Store
After a review and with launch approval from Google, you can launch your app to the Google Play Store through your Google Play Developer Console..