Home > Mobile >  About the purchase order after check return within the GooglePlay 400 error code
About the purchase order after check return within the GooglePlay 400 error code

Time:11-16

Has recently been paid by integrated Google and read a lot of articles on this and Google's official documents,
For several days, was the last step,

Now test payment and for history orders and data has been completed,
Just the last step order validation

Here I met a problem, I send the request after me the error code 400

Through the platform at home and abroad, can't find a solution,
I checked all the parameter data, is no problem,
Hope to have integrated Google pay people to help the busy! Thank you very much!

This is my request code:
The String url="https://www.googleapis.com/androidpublisher/v3/applications/" + context. GetPackageName () + "/purchases/products/" + mProductId +"/tokens/" + mPurchaseToken;
Log. I (" BillingClientManage ", "Google pay check request:" + url);

OkHttpUtils. The get (). A url (url)
. AddParams (" access_token ", accessToken)
The build (). The execute (new StringCallback () {
@ Override
Public void one rror (Call Call, Exception e, int id) {
}

@ Override
Public void onResponse (String response, int id) {
}
});

This is the return code:
{
"Error" : {
"Code" : 400,
"Message" : "Invalid Value",
"Errors" : [
{
"Message" : "Invalid Value",
"Domain", "global",
"" reason" : "invalid"
}
]
}
}

CodePudding user response:

I also met the same problem, could you tell me how to solve the problem is?
  • Related