question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"The purchase is not in a valid state to perform the desired operation." Callback

See original GitHub issue

Hello,

We’re confirming receipts using SERVICE.purchases().products().acknowledge() method. But there are countless receipts that return with “The purchase is not in a valid state to perform the desired operation.” when we contacted the Google Support channel, they didn’t help us at all. Is there any chance that we could get a proper explanation regarding this callback?

Edit: For future Google searches; Contacted Google Support team, due to our architecture we sometimes try to acknowledge a receipt more than once. It turns out (for consumable in app purchases) trying to acknowledge a receipt that has already been acknowledged returns with this callback.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
umityaylacommented, Feb 2, 2021

Sorry for not posting a follow up. Contacted Google through issue tracker and their answer was the following way;

This may happen when you’re trying to acknowledge or consume an item that is pending (not this case) or already marked acknowledged or consumed (likely this case).

0reactions
umityaylacommented, Sep 28, 2020

Thank you for your help and have a nice day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SKPaymentTransactionObserver not getting a callback on app ...
If I examine the payment queue, I can see that the transaction is still in the queue, still in the "Purchasing" state. Is...
Read more >
Purchase Inquiry Callback API - Visa Developer Community
We got below error when I tried to call purchase_inquiry_callback_api. { "statusCode": 404, "body": { "responseStatus":
Read more >
Service callback not reaching the defined callback class
Solved: I am very new to NCS and Yang modelling. I had created a new Service Yang and the service callback classes. But...
Read more >
BillingClient - Android Developers
Main interface for communication between the library and user application code. It provides convenience methods for in-app billing.
Read more >
The operation is not allowed in the current state (1003829)
When performing a vMotion migration operation, you see this compatibility error: Unable to migrate from <source server> to <destination ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found