Solved

Getting "There was a credentials issue." on android after 72+ hours

  • 23 July 2021
  • 7 replies
  • 236 views

Badge

As title says, getting "There was a credentials issue." on android after 72+ hours. 

 

I am using `"react-native-purchases": "^4.2.0"`. Followed this guide https://docs.revenuecat.com/docs/creating-play-service-credentials#2-create-service-account to setup service account.

 

Subscription purchase goes through (and buying the same 2nd time Google says it is already purchased, but when RevenueCat tries to validate recipe, it says:

 

```

07-23 11:59:32.855 32097  3011 D [Purchases] - DEBUG: ℹ️ API request started: POST /receipts
07-23 11:59:32.857 32097  3011 D [Purchases] - DEBUG: ℹ️ API request completed with status: POST /receipts 503
07-23 11:59:32.858 32097  3011 E [Purchases] - ERROR: 🤖‼️ There was a credentials issue. Check the underlying error for more details.

```

 

How should I solve this?

icon

Best answer by tina 23 July 2021, 19:57

View original

7 replies

Userlevel 4
Badge +9

Hi @Rokas 👋!

Can you check the full object of the error? Something like console.log(JSON.stringify(e))) rather than just console.log(e)

Badge +2

@tina and @Rokas I am also experiencing this. This is the error message I get when printing everything which is not much more helpful than what is already posted

 

Error purchasing subscription (null): PlatformException(11, There was a credentials issue. Check the underlying error for more details., {code: 11, message: There was a credentials issue. Check the underlying error for more details., readableErrorCode: InvalidCredentialsError, readable_error_code: InvalidCredentialsError, underlyingErrorMessage: Invalid Play Store credentials., userCancelled: false}, null)

 

Badge +2

As Rokas mentioned, what’s more concerning about this is the purchase actually goes through and I get a receipt emailed me from the google play store. So if we catch errors in our application, we will show an error to the user “payment did not go through” but it actually did.

Userlevel 4
Badge +9

Hey @Tony 

After purchasing the product, do you receive an email from Google a few minute later that the order was cancelled? How long has it been since you set up the Play Service Credentials? 

Badge +2

@tina

After purchasing the product, do you receive an email from Google a few minute later that the order was cancelled?

 

Ah yes, we do get an email like this:


“This test purchase was cancelled because it was not acknowledged. You should ensure all purchases are acknowledged so they are not subject to refunds. For more information see”

 

I’m not sure what this all means though!

 

How long has it been since you set up the Play Service Credentials? 

 

I set them up a few hours ago

Userlevel 4
Badge +9

Hey @Tony !

Sorry for the delay here. Since Play Store service credentials take up to 36+ hours to propagate throughout Google’s servers, we recommend waiting some time before attempting to purchase. You’ll receive that email from Google if your service credentials are not working yet. It has been some time since your last response, is everything looking good on the credentials side?

Badge +2

As title says, getting "There was a credentials issue." on android after 72+ hours. 

 

I am using `"react-native-purchases": "^4.2.0"`. Followed this guide https://docs.revenuecat.com/docs/creating-play-service-credentials#2-create-service-account to setup service account.

 

Subscription purchase goes through (and buying the same 2nd time Google says it is already purchased, but when RevenueCat tries to validate recipe, it says:

 

```

07-23 11:59:32.855 32097  3011 D [Purchases] - DEBUG: ℹ️ API request started: POST /receipts
07-23 11:59:32.857 32097  3011 D [Purchases] - DEBUG: ℹ️ API request completed with status: POST /receipts 503
07-23 11:59:32.858 32097  3011 E [Purchases] - ERROR: 🤖‼️ There was a credentials issue. Check the underlying error for more details.

```

 

How should I solve this?

How did you manage to solve it?

Reply