问题
I'm using In-App Billing V3.
When I try to make a purchase I'm getting a server response code of 2.
I've searched but can find no documentation on what this response code means.
If you look at the official In-app Billing Reference (IAB Version 3) documentation you'll notice a value of 2 is conspicuously missing from the table of server response codes.
What does this value indicate, and why might I be getting it??
Update:
I've just notice that the documents for In-app Billing V2 say that a value of 2 "Indicates that the network connection is down". I'm guessing this is the same in V3, but there's just an omission in the documentation? Can anybody confirm?
Update 2:
It looks like the In-App Billing V3 documentation has finally been updated to include the missing server response.
BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE 2 Network connection is down
来源:https://stackoverflow.com/questions/23754209/android-in-app-billing-is-returning-server-response-code-2-what-does-it-mean