2024/06/18 21:58:00.075 7434 7464 Error Unity ApiResponseException: {“code”:2,“message”:“receipt is malformed”}
{“level”:“error”,“ts”:“2024-06-19T01:58:00.198Z”,“caller”:“server/core_purchase.go:185”,“msg”:“Error validating Google receipt”,“error”:“receipt is malformed”}
I think I’ve followed the instructions well. Please help!
it seems that Nakama wasn’t able to use the service account I provided to do receipt validation.
I tried to disable the service account and it gave me the same “receipt is malformed” error.
now I got the following, which I think is one step further
2024/06/19 12:24:35.584 8856 8881 Error Unity ApiResponseException: {“code”:2,“message”:“non-200 response from Google service, status=401, payload={\n "error": {\n "code": 401,\n "message": "The current user has insufficient permissions to perform the requested operation.",\n "errors": [\n {\n "message": "The current user has insufficient permissions to perform the requested operation.",\n "domain": "androidpublisher",\n "reason": "permissionDenied"\n }\n ]\n }\n}\n”}
ok, problem solved!
another note here:
the activation of service account could take many hours. My most recently created services account failed to work and my another older account works perferctly now.