Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Googleplay purchases.products.acknowledge return 400 not a valid state and 409 cocurrentUpdate

We try to do acknowledge google play purchase on the server-side through purchases.products.acknowledge with golang

However, the following errors come up sometime

googleapi: Error 409: The operation could not be performed since the object was 
already in the process of being updated., concurrentUpdate
googleapi: Error 400: The purchase is not in a valid state to perform the desired operation

Is there anything am I missing? or how to solve those errors?

like image 725
zangw Avatar asked Oct 19 '25 03:10

zangw


1 Answers

Per google support

  • For error 400, the purchaseState must be Purchased or 0 before you can acknowledge the purchase. For more information, please refer to this page: https://developer.android.com/google/play/billing/integrate#process

    Error 400 can also mean that you already acknowledged the purchase.

  • For error 409, this means you are acknowledging the purchase multiple times concurrently. Unfortunately, we don't provide support for API concurrency issues.

like image 192
zangw Avatar answered Oct 22 '25 05:10

zangw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!