You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made purchase, which included several inapp products. Then when I try to get a purchase state using API purchase.products.get, I retrieve correct answer only for first productId from my order. For another products from order I get error:
{
"error": {
"code": 400,
"message": "The purchase token does not match the product ID.",
"errors": [
{
"message": "The purchase token does not match the product ID.",
"domain": "androidpublisher",
"reason": "purchaseTokenDoesNotMatchProductId",
"location": "token",
"locationType": "parameter"
}
]
}
}
Steps to reproduce:
Make purchase
List<BillingFlowParams.ProductDetailsParams> params = new ArrayList<>();
// One product
params.add(BillingFlowParams.ProductDetailsParams
.newBuilder()
.setProductDetails(<ProducetDetails1>)
.setOfferToken(<OfferToken>)
.build()
);
// Another product
params.add(BillingFlowParams.ProductDetailsParams
.newBuilder()
.setProductDetails(<ProducetDetails2>)
.setOfferToken(<OfferToken>)
.build()
);
BillingFlowParams.Builder flowParams = BillingFlowParams.newBuilder()
.setProductDetailsParamsList(params);
billingClient.launchBillingFlow(activity, flowParams.build());
Try to get info about about purchase by token and productId
I would try to make the call using the APIs Explorer. If you see the same issue there, then the problem is with the productId and token you're provided. If not, then the issue is with this library.
Hello
I made purchase, which included several inapp products. Then when I try to get a purchase state using API
purchase.products.get, I retrieve correct answer only for first productId from my order. For another products from order I get error:
Steps to reproduce:
On this step for first product in order you will get some sing like this:
for another you will get the error
Thanks a lot in advance!
Environment details
The text was updated successfully, but these errors were encountered: