Search code examples
androidin-app-billingandroid-app-signingandroid-app-bundle

Why am I getting DEVELOPER_ERROR response code when connecting my BillingClient?


/**
 * Invalid arguments provided to the API. This error can also indicate that the application was
 * not correctly signed or properly set up for In-app Billing in Google Play, or does not have
 * the necessary permissions in its manifest
 */
int DEVELOPER_ERROR = 5;

I am using Google Play Signing - so I upload App Bundles for releases. I'm wondering if that could somehow be related? (since Google Play is using its own signing key on their backend vs a local key)

I have the com.android.vending.BILLING permission in my manifest, and I'm able to use "test cards" with debug builds successfully. I only noticed this problem through Bugsnag reports where I am logging failure events.

Anyone know why this is happening?


Solution

  • In the Google Cloud Console, you need to configure the API credentials to whitelist your package name and the certificate. The certificate is the one that is listed as "App Signing certificate" in the "App Signing" page in the Play Console.