google-play-billing-validator
google-play-billing-validator copied to clipboard
Error while acknowledging purchase
I'm getting this error while acknowledging the purchase, but this issue is only there for purchase not with the subscription,
Please help me to solve this issue, till last month it was working,
{
isSuccessful: false,
errorCode: 400,
errorMessage: 'Invalid response, please check ' +
"'Verifier' configuration or the " +
'statusCode above'
}
Sample code
let receipt = {
packageName: packageName,
productId: productId,
purchaseToken: purchaseToken,
developerPayload: 'Acknowledged Purchase Successfully'
};
console.log(receipt);
verifier.verifySub(receipt).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
reject('err')
});
I think you need to first validate the purchase (don't include developerPayload
) and check if acknowledgementState
is already set to 1, before trying to acknowledge again.
I am seeing the same thing during testing. When validating a purchase i see acknowledgementState=0 but when i try to acknowledge i get the same error.
did anyone solve it? { "error": { "code": 400, "message": "Invalid Value", "errors": [ { "message": "Invalid Value", "domain": "global", "reason": "invalid" } ] } }
same issue I am dealing with.
@Deishelon any update here
{
isSuccessful: false,
errorCode: 400,
errorMessage: "Invalid response, please check 'Verifier' configuration or the statusCode above"
}
did anyone solve it? { "error": { "code": 400, "message": "Invalid Value", "errors": [ { "message": "Invalid Value", "domain": "global", "reason": "invalid" } ] } }
same issue I am dealing with.
were you able to rectify it? I'm stuck at same point.