{"id":3013,"date":"2018-06-26T15:46:49","date_gmt":"2018-06-26T06:46:49","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=3013"},"modified":"2018-06-26T15:46:49","modified_gmt":"2018-06-26T06:46:49","slug":"googleplay%e3%81%ae%e3%83%ac%e3%82%b7%e3%83%bc%e3%83%88-linkedpurchasetoken-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2018\/06\/26\/googleplay%e3%81%ae%e3%83%ac%e3%82%b7%e3%83%bc%e3%83%88-linkedpurchasetoken-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"GooglePlay\u306e\u30ec\u30b7\u30fc\u30c8 linkedPurchaseToken \u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u5b9a\u671f\u8cfc\u8aad\u6642\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u308a\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u4ed8\u4e0e\u3055\u308c\u308blinkedPurchaseToken\u30d5\u30a3\u30fc\u30eb\u30c9<\/p>\n<p>\u767a\u751f\u3059\u308b\u30b1\u30fc\u30b9\u306f\u4ee5\u4e0b\u306e\uff12\u30d1\u30bf\u30fc\u30f3<\/p>\n<p>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u8cfc\u5165\u5f8c\u3001\u671f\u9650\u524d\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u3001\u518d\u3073\u671f\u9650\u524d\u306b\u8cfc\u5165\uff08\uff11\u30f6\u6708\u306e\u30d7\u30e9\u30f3\u3067\u3001\u5373\u65e5\u89e3\u7d04\u3057\u3066\u3001\u7fcc\u65e5\u8cb7\u3044\u76f4\u3057\uff09<br \/>\n\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u8cfc\u5165\u5f8c\u3001\u5225\u306e\u30d7\u30e9\u30f3\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/p>\n<p>\u3053\u306e\u5834\u5408\u306blinkedPurchaseToken\u304c\u4ee5\u524d\u306e\u30ec\u30b7\u30fc\u30c8\u60c5\u5831\u3092\u4fdd\u6301\u3059\u308btoken\u3068\u306a\u308b\uff08linkedPurchaseToken\u306f\u76f4\u8a33\u3059\u308c\u3070\u3064\u306a\u304c\u308c\u3066\u3044\u308b\u8cfc\u5165\u5c65\u6b74\u30c8\u30fc\u30af\u30f3)<\/p>\n<p>\u4ee5\u4e0bGoogle\u306eAPI\u30da\u30fc\u30b8\u306e\u610f\u8a33\u3092\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>For example, suppose a user originally signs up and you receive purchase token X, then the user cancels and goes through the resignup flow (before their subscription lapses) and you receive purchase token Y, and finally the user upgrades their subscription and you receive purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If you call this API with purchase token Y, this field will be set to X. If you call this API with purchase token X, this field will not be set.<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6700\u521d\u306b\u8cfc\u5165\u3057\u305f\u30c8\u30fc\u30af\u30f3\u3092X\u3068\u3059\u308b\u3002\u305d\u308c\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u306e\u3061\u3001\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u671f\u9650\u7121\u3044\u306b\u3082\u3046\u4e00\u5ea6\u8cfc\u5165\u3059\u308b\u3068\u30c8\u30fc\u30af\u30f3Y\u304c\u767a\u884c\u3055\u308c\u308b\u3002\u3053\u306e\u5f8c\u3055\u3089\u306b\u30d7\u30e9\u30f3\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3068\u30c8\u30fc\u30af\u30f3Z\u304c\u767a\u884c\u3055\u308c\u308b\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3Z\u3067\u30ec\u30b7\u30fc\u30c8\u691c\u8a3cAPI\u3092\u547c\u3076\u3068\u3001linkedPurchaseToken\u306b\u306f\u30c8\u30fc\u30af\u30f3Y\u304c\u30bb\u30c3\u30c8\u3055\u308c\u308b\u3002<br \/>\n\u30c8\u30fc\u30af\u30f3Y\u3067\u30ec\u30b7\u30fc\u30c8\u691c\u8a3cAPI\u3092\u547c\u3076\u3068\u3001linkedPurchaseToken\u306b\u306f\u30c8\u30fc\u30af\u30f3X\u304c\u30bb\u30c3\u30c8\u3055\u308c\u308b\u3002<br \/>\n\u30c8\u30fc\u30af\u30f3X\u3067\u30ec\u30b7\u30fc\u30c8\u691c\u8a3cAPI\u3092\u547c\u3076\u3068\u3001linkedPurchaseToken\u306b\u306f\u306a\u306b\u3082\u8a2d\u5b9a\u3055\u308c\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9a\u671f\u8cfc\u8aad\u6642\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u308a\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u4ed8\u4e0e\u3055\u308c\u308blinkedPur &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2018\/06\/26\/googleplay%e3%81%ae%e3%83%ac%e3%82%b7%e3%83%bc%e3%83%88-linkedpurchasetoken-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[213],"tags":[559,558],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3013"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=3013"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3013\/revisions"}],"predecessor-version":[{"id":3014,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3013\/revisions\/3014"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=3013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=3013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=3013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}