The purchase token was not found.

先月くらいから1,2件同じ現象が起きてたんだけど

09/28 - 09/29のAndroid課金で、Subscriptionの一部のレシートがおかしい現象が発生

androidから送られてくるレシートをandroid-play-publisher-api経由でpurchase tokenをきくとtokenが無いと言われる

```
{
"code" : 404,
"errors" : [ { "domain" : "global",
"location" : "token",
"locationType" : "parameter",
"message" : "The purchase token was not found.",
"reason" : "purchaseTokenNotFound"
} ],
"message" : "The purchase token was not found."
}
```

Googleの管理コンソールから見るときちんと決済完了している

なんでや

調べたところ、issueも上がってた

The purchase token was not found. · Issue #21 · googlesamples/android-play-publisher-api · GitHub

正しいレシートが取得できないが、流石にクライアント側のデータを信じる訳にはいかないので手詰まり感


現状のところ解決策がないようである。。

10/1追記

Googleに問い合わせた人がいたらしく、近日中には修正されるとのこと
同様の現象が起きたらキャンセルしちゃっていいらしい

I talked with a guy who works at Google yesterday. This problem will be fixed soon.
They were working on the servers yesterday and it affected the billing api.
In the app I work here is working fine again.
For someone who is still getting this error, try to cancel the subscription (in my case) once and buy it again.

ちなみに、その時取得できなかったレシートは今は取得できるようになってました