Closed pgwzzz closed 7 years ago
Oh, I found two problems. The first problem is that I should not treat receipt as a JSON object which nature is UNORDERED. The second problem is that json.dump() inserts white spaces which are not allowed in this case.
The receipt parameter for validator.validate() must follow the below rule.
receipt = '{"orderId":"...","packageName":"...","productId":"...","purchaseTime":...,"purchaseState":...,"developerPayload":"...","purchaseToken":"..."}'
Problem solved.
Hello.
I'm just trying your library to verify receipt that is sent from Android device.
I've set everything and I bought an item with my friends' smartphone.
The problem is that it always fails to validate.
I found that verify() in pkcs1.py always fails because expected != clearsig.
Could you give any advice for this?
Thank you very much.