react-native-purchases icon indicating copy to clipboard operation
react-native-purchases copied to clipboard

Invalid Play Store credentials

Open RobertSasak opened this issue 7 years ago • 5 comments

Platform: Android Version: 2.4.1 Testing: on Real device

When restoring purchases I get following error. What can go wrong?

Purchases.restoreTransactions()
        .then((purchaseInfo) => {
            if (containPurchase(purchaseInfo)) {
                return true
            }
            throw Error('No previous purchases found')
        })
        .catch(e => {
            console.log(JSON.stringify(e))
            throw e
        })
{
"framesToPop":1,
"nativeStackAndroid":[],
"userInfo": {
  "underlyingErrorMessage":"Invalid Play Store credentials.",
  "readable_error_code":"InvalidCredentialsError",
  "message":"There was a credentials issue. Check the underlying error for more details."
},
"code":"11"
}

I get the same error when purchasing subscription. Subscription is activated in Google Play(I do receive confirmation email).

To me it sounds like RevenueCat cannot confirm purchase. I have double checked that I have correct permissions in Google Play Console and that I have uploaded correct Service Account credentials JSON. I have also checked Google Play Package name as suggested here: https://docs.revenuecat.com/discuss/5b95217206ca8a00031f0b93

RobertSasak avatar Sep 10 '19 20:09 RobertSasak

Hey! When did you update the Play Store Credentials in RevenueCat?

They can take up to 24 hours to propagate.

jeiting avatar Sep 10 '19 20:09 jeiting

I re-uploaded them again just now. I will report again tomorrow.

RobertSasak avatar Sep 10 '19 21:09 RobertSasak

Error persist also after 24hours. I have a feeling that is just something silly missing, but what?

RobertSasak avatar Sep 11 '19 21:09 RobertSasak

Are you certain the credentials match the package id you're testing with?

jeiting avatar Sep 11 '19 22:09 jeiting

Never mind, apparently it can take more than 24h.

RobertSasak avatar Sep 12 '19 07:09 RobertSasak