aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

The current user has insufficient permissions to perform the requested operation. #114

Closed birdeveloper closed 4 years ago

birdeveloper commented 4 years ago

Hello, I have done the setups and steps correctly but I get this error and there is nothing clear about its solution. I am trying to verify the invoice in Google Play Billing, the result returned to me is as follows:

got error = { "error": { "errors": [ { "domain": "androidpublisher", "reason": "permissionDenied", "message": "The current user has insufficient permissions to perform the requested operation." } ], "code": 401, "message": "The current user has insufficient permissions to perform the requested operation." } }

Stafox commented 4 years ago

It means you have not provide enough permisions while created service account. You can follow these instructions:

https://www.revenuecat.com/blog/android-subscriptions-tutorial Creating service credentials

birdeveloper commented 4 years ago

@Stafox I followed these instructions, but didn't there any other solution?

Stafox commented 4 years ago

What kind solution? Google directly said that you have no permission.

birdeveloper commented 4 years ago

But there is no problem in my permissions and codes, I have been dealing for 3 days why always says that, I have only one thing in mind. I wonder now, because of COVID-19, Google extended the comebacks, so is it late in confirming the powers of the Auth account?

Stafox commented 4 years ago

Try to repeat again the steps about creating the service account. And make sure that this service account connected with your app.

I have no idea how to help you with that. Sorry.

birdeveloper commented 4 years ago

thank u sir :/

Stafox commented 4 years ago

@birdeveloper Did you find a way how to fix your problem?

birdeveloper commented 4 years ago

@Stafox I stopped working that day. The problem resolved spontaneously when I started working the next day. I don't know what the solution.