{"id":388899,"date":"2024-06-29T08:15:00","date_gmt":"2024-06-29T08:15:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=388899"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=388899","title":{"rendered":"<span>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 4: \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442 Billing Library \u0438 \u043a\u0430\u043a \u043d\u0435 \u043e\u0431\u043b\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u044f \u0412\u043b\u0430\u0434, core \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a <a href=\"https:\/\/adapty.io\/sdk\/android?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\"><u>Adapty SDK \u0434\u043b\u044f Android<\/u><\/a>. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Google Play. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/568902\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 1: \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/571122\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 2: \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u043a\u0443\u043f\u043e\u043a.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/573058\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 3: \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0438 \u0441\u043c\u0435\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 4: \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442 Billing Library \u0438 \u043a\u0430\u043a \u043d\u0435 \u043e\u0431\u043b\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c. \u2014 \u0412\u044b \u0442\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/576164\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 5: \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u043e\u043a. <\/u><\/a>  <\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode\"><u>\u043a\u043e\u0434\u0430\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/u><\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 Billing Library \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingResult#getResponseCode()\"><u>getResponseCode()<\/u><\/a>.\u00a0<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0441\u0432\u043e\u0438 \u043a\u043e\u043b\u0431\u044d\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/571122\/\"><u>\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>. \u0421 \u043e\u0434\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u043f\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u2014 \u044d\u0442\u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#USER_CANCELED\"><strong><u>USER_CANCELED<\/u><\/strong><\/a>, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043a\u0443\u043f\u0438\u0432. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<h3>\u041a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a<\/h3>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u044b\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u2013 \u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ERROR\"><strong><u>ERROR<\/u><\/strong><\/a> (responseCode 6) \u0438 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#DEVELOPER_ERROR\"><strong><u>DEVELOPER_ERROR<\/u><\/strong><\/a> (responseCode 5). \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u0433\u0443\u0433\u043b \u043f\u0438\u0448\u0435\u0442 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u00abFatal error during the API action\u00bb, \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u2013 \u00abInvalid arguments provided to the API\u00bb. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044f \u0441\u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>DEVELOPER_ERROR<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#querySkuDetailsAsync(com.android.billingclient.api.SkuDetailsParams,%20com.android.billingclient.api.SkuDetailsResponseListener)\"><u>querySkuDetailsAsync()<\/u><\/a> \u0432 \u0431\u0438\u043b\u0434\u0435\u0440 \u0432 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/SkuDetailsParams.Builder#setType(java.lang.String)\"><u>setType()<\/u><\/a> \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<p>\u041d\u043e \u043d\u0435 \u0432\u0441\u0451 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u042f \u043f\u043e\u0448\u0435\u043b \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#launchBillingFlow(android.app.Activity,%20com.android.billingclient.api.BillingFlowParams)\"><u>launchBillingFlow()<\/u><\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/SkuDetails\"><u>SkuDetails<\/u><\/a> (\u0432\u044b\u0442\u0430\u0449\u0438\u043b json \u0438\u0437 SkuDetails \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432 \u043d\u0435\u043c productId \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043d\u043e\u0432\u043e\u043c\u0443 SkuDetails). \u041f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e invalid argument, \u0438 \u044f \u043e\u0436\u0438\u0434\u0430\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>DEVELOPER_ERROR<\/strong>, \u043d\u043e\u2026 \u043f\u043e\u043b\u0443\u0447\u0438\u043b <strong>ERROR<\/strong>.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u0432 \u044d\u0442\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u2014 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0438 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4d2\/69e\/eb0\/4d269eeb0e9717f7517c34032c94e1ea.png\" width=\"1480\" height=\"520\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4d2\/69e\/eb0\/4d269eeb0e9717f7517c34032c94e1ea.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0433\u0443\u0433\u043b \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u043b \u043e\u043f\u043b\u0430\u0442\u0443. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u043e \u0447\u0435\u043c \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u00abtest card, always declined\u00bb, \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 <strong>ERROR<\/strong>, \u043d\u043e \u0443\u0436\u0435 \u0441 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c.<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/573058\/\"><u>\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>, \u0433\u0434\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u043c\u0435\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438, \u043c\u044b \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 proration mode \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 \u0446\u0435\u043d\u0443 \u0433\u043e\u0434\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043f\u043e\u0447\u0442\u0438 \u0432 3 \u0440\u0430\u0437\u0430, \u043d\u043e \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a\u0430\u044f \u0442\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430, \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 proration mode, \u043f\u043e \u043b\u043e\u0433\u0438\u043a\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0451 \u0442\u0443 \u0436\u0435 <strong>DEVELOPER_ERROR<\/strong>. \u041d\u043e \u043d\u0435\u0442, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_UNAVAILABLE\"><strong><u>SERVICE_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 2). \u0415\u0435 \u0436\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043b\u0435\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 proration mode (\u044d\u0442\u043e int, \u0430 \u043d\u0435 enum, \u043d\u0430\u0441 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442), \u0438 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 purchaseToken. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u0440\u043e <strong>SERVICE_UNAVAILABLE<\/strong> \u2013 \u00abNetwork connection is down\u00bb. \u0422\u0430\u043a, \u0441\u0442\u043e\u043f\u2026<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0449\u0435 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c78\/3ec\/9ea\/c783ec9ea90010176fce6c18a58c0e47.jpeg\" width=\"603\" height=\"436\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c78\/3ec\/9ea\/c783ec9ea90010176fce6c18a58c0e47.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e \u0435\u0449\u0435 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u2013 \u0432 \u043a\u0435\u0439\u0441\u0435 \u0441 <strong>ERROR<\/strong> \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 <strong>\u041d\u0415<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041e\u041a\u00bb (\u0442\u043e \u0435\u0441\u0442\u044c, \u0442\u0435\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043d\u0430\u0437\u0430\u0434) \u0432 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/PurchasesUpdatedListener#onPurchasesUpdated(com.android.billingclient.api.BillingResult,%20java.util.List%3Ccom.android.billingclient.api.Purchase%3E)\"><u>onPurchasesUpdated()<\/u><\/a> \u043f\u0440\u0438\u0448\u043b\u043e, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <strong>ERROR<\/strong>, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <strong>SERVICE_UNAVAILABLE<\/strong> \u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 <strong>USER_CANCELED<\/strong> (\u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u041e\u041a\u00bb \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435, \u0442\u043e \u043c\u044b, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043c <strong>SERVICE_UNAVAILABLE<\/strong>).<\/p>\n<p>\u041d\u0443 \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 <strong>SERVICE_UNAVAILABLE<\/strong> \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442, \u0442\u0443\u0442 \u043d\u0435 \u0441\u043e\u0432\u0440\u0430\u043b\u0438.<\/p>\n<p>\u0412\u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c, honorable mentions.<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#BILLING_UNAVAILABLE\"><strong><u>BILLING_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 3). \u0413\u0443\u0433\u043b \u043f\u043e\u044f\u0441\u043d\u044f\u0435\u0442, \u0447\u0442\u043e \u00abBilling API version is not supported for the type requested\u00bb. \u042f \u0441\u043c\u043e\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u0443 \u043e\u0448\u0438\u0431\u043a\u0443, \u0440\u0430\u0437\u043b\u043e\u0433\u0438\u043d\u0438\u0432\u0448\u0438\u0441\u044c \u0438\u0437 Google-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 \u0425\u0443\u0430\u0432\u0435\u0435 \u0431\u0435\u0437 Google Play Services. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445, \u0433\u0434\u0435 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438 Google Play.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_DISCONNECTED\"><strong><u>SERVICE_DISCONNECTED<\/u><\/strong><\/a> (responseCode -1). \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u0441\u044f \u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Google Play. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438, \u0435\u0441\u043b\u0438 Play Store \u0432\u0434\u0440\u0443\u0433 \u0440\u0435\u0448\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0445\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Billing Library, \u043a\u0430\u043a \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u0410 \u0435\u0449\u0435 \u043c\u044b \u0441 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_DISCONNECTED\"><u>\u0433\u0443\u0433\u043b\u043e\u043c<\/u><\/a> \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c retry policy, \u0435\u0441\u043b\u0438 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0441\u0451 \u0436\u0435 \u043f\u0440\u0438\u0434\u0435\u0442 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_TIMEOUT\"><strong><u>SERVICE_TIMEOUT<\/u><\/strong><\/a> (responseCode -3). \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c\u043e \u0437\u0430 \u0441\u0435\u0431\u044f \u2014 \u043c\u044b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Google Play.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#FEATURE_NOT_SUPPORTED\"><strong><u>FEATURE NOT SUPPORTED<\/u><\/strong><\/a> (responseCode -2). \u0412 \u043a\u043b\u0430\u0441\u0441\u0435 BillingClient \u0435\u0441\u0442\u044c \u043f\u044f\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.FeatureType\"><u>FeatureType<\/u><\/a>. \u0418\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#isFeatureSupported(java.lang.String)\"><u>billingClient.isFeatureSupported(BillingClient.FeatureType.\u041d\u0443\u0436\u043d\u0430\u044f\u0424\u0438\u0447\u0430)<\/u><\/a>. \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 (Xiaomi Mi A2 Lite) <strong>FEATURE_NOT_SUPPORTED<\/strong> \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f SUBSCRIPTIONS_ON_VR. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u043b\u044f IN_APP_ITEMS_ON_VR, \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0438\u0447, \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c OK.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_NOT_OWNED\"><strong><u>ITEM_NOT_OWNED<\/u><\/strong><\/a> (responseCode 8). \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0438\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0430.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_ALREADY_OWNED\"><strong><u>ITEM_ALREADY_OWNED<\/u><\/strong><\/a> (responseCode 7). \u0410 \u0442\u0443\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2013 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043a\u0443\u043f\u0438\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c. \u0412 \u0442\u0430\u043a\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c UI \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0435\u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0439.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0421\u0430\u043c\u0430\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0441\u0430\u043c\u0430\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0443\u0442\u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f in-app purchases \u2014 \u044d\u0442\u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_UNAVAILABLE\"><strong><u>ITEM_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 4). \u041e\u043d\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043d\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u043f\u043e\u0447\u0435\u043c\u0443. \u0410 \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u0435: \u043e\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0434\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0447\u0435\u043a-\u043b\u0438\u0441\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0435\u0435 \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0430\u0448 test track \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 Billing Library. \u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u2014 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043d\u0430 \u0434\u0435\u0431\u0430\u0436\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 applicationId, \u043d\u043e \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441\u0431\u043e\u0440\u043a\u0430 \u0441 Billing Library \u0431\u044b\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 Play Console.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 test track \u0433\u0443\u0433\u043b-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f internal testing \u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0430\u043b\u044c\u0444\u044b\/\u0431\u0435\u0442\u044b. \u0422\u0430\u043c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 How testers join your test, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 Play Console \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430 activate, \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/568902\/\"><u>\u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0441 \u0433\u0443\u0433\u043b-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u043c. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u044f\u043a\u043e\u0435, \u0438 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><code>applicationId<\/code> \u0441\u0431\u043e\u0440\u043a\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430, \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 applicationId \u0438\u0437 Play Console. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0443\u0444\u0444\u0438\u043a\u0441 \u0432 \u0434\u0435\u0431\u0430\u0436\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c email-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Setup \u2192 License Testing \u0432 \u043b\u0435\u0432\u043e\u043c \u043c\u0435\u043d\u044e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 (\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f), \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u043b\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u0430 \u043d\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u043b\u044e\u0441, \u0447\u0442\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c <a href=\"https:\/\/developer.android.com\/google\/play\/billing\/test#renewals\"><u>\u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/u><\/a>. \u041d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u043d\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0437\u043d\u0430\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ol>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0430\u0433\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c, \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0438\u0442\u044c ITEM_UNAVAILABLE. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u0439 \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442.<\/p>\n<h3>\u041f\u0440\u043e Adapty<\/h3>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c Adapty SDK \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, Adapty \u0434\u0430\u0451\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/adapty.io\/subscription-analytics?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0433\u043e\u0440\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/564748\/\">\u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0410\/\u0411 \u0442\u0435\u0441\u0442\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0443\u0447\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/adapty.io\/return-subscribers?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u041f\u0440\u043e\u043c\u043e-\u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438<\/a> \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u043e\u0442\u0442\u043e\u043a \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>Open source SDK \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0438 API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/adapty.io?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u041f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u044d\u0442\u0438\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438<\/a>, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/575866\/\"> https:\/\/habr.com\/ru\/articles\/575866\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u044f \u0412\u043b\u0430\u0434, core \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a <a href=\"https:\/\/adapty.io\/sdk\/android?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\"><u>Adapty SDK \u0434\u043b\u044f Android<\/u><\/a>. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Google Play. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/568902\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 1: \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/571122\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 2: \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u043a\u0443\u043f\u043e\u043a.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/573058\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 3: \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0438 \u0441\u043c\u0435\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438.<\/u><\/a><\/p>\n<\/li>\n<li>\n<p>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 4: \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442 Billing Library \u0438 \u043a\u0430\u043a \u043d\u0435 \u043e\u0431\u043b\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c. \u2014 \u0412\u044b \u0442\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/576164\/\"><u>Android in-app purchases, \u0447\u0430\u0441\u0442\u044c 5: \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u043e\u043a. <\/u><\/a>  <\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode\"><u>\u043a\u043e\u0434\u0430\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/u><\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 Billing Library \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingResult#getResponseCode()\"><u>getResponseCode()<\/u><\/a>.\u00a0<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0441\u0432\u043e\u0438 \u043a\u043e\u043b\u0431\u044d\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/571122\/\"><u>\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>. \u0421 \u043e\u0434\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u043f\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u2014 \u044d\u0442\u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#USER_CANCELED\"><strong><u>USER_CANCELED<\/u><\/strong><\/a>, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043a\u0443\u043f\u0438\u0432. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<h3>\u041a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a<\/h3>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u044b\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u2013 \u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ERROR\"><strong><u>ERROR<\/u><\/strong><\/a> (responseCode 6) \u0438 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#DEVELOPER_ERROR\"><strong><u>DEVELOPER_ERROR<\/u><\/strong><\/a> (responseCode 5). \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u0433\u0443\u0433\u043b \u043f\u0438\u0448\u0435\u0442 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u00abFatal error during the API action\u00bb, \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u2013 \u00abInvalid arguments provided to the API\u00bb. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044f \u0441\u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>DEVELOPER_ERROR<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#querySkuDetailsAsync(com.android.billingclient.api.SkuDetailsParams,%20com.android.billingclient.api.SkuDetailsResponseListener)\"><u>querySkuDetailsAsync()<\/u><\/a> \u0432 \u0431\u0438\u043b\u0434\u0435\u0440 \u0432 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/SkuDetailsParams.Builder#setType(java.lang.String)\"><u>setType()<\/u><\/a> \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<p>\u041d\u043e \u043d\u0435 \u0432\u0441\u0451 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u042f \u043f\u043e\u0448\u0435\u043b \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#launchBillingFlow(android.app.Activity,%20com.android.billingclient.api.BillingFlowParams)\"><u>launchBillingFlow()<\/u><\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/SkuDetails\"><u>SkuDetails<\/u><\/a> (\u0432\u044b\u0442\u0430\u0449\u0438\u043b json \u0438\u0437 SkuDetails \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432 \u043d\u0435\u043c productId \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043d\u043e\u0432\u043e\u043c\u0443 SkuDetails). \u041f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e invalid argument, \u0438 \u044f \u043e\u0436\u0438\u0434\u0430\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>DEVELOPER_ERROR<\/strong>, \u043d\u043e\u2026 \u043f\u043e\u043b\u0443\u0447\u0438\u043b <strong>ERROR<\/strong>.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u0432 \u044d\u0442\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u2014 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0438 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0433\u0443\u0433\u043b \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u043b \u043e\u043f\u043b\u0430\u0442\u0443. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u043e \u0447\u0435\u043c \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u00abtest card, always declined\u00bb, \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 <strong>ERROR<\/strong>, \u043d\u043e \u0443\u0436\u0435 \u0441 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c.<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/573058\/\"><u>\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>, \u0433\u0434\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u043c\u0435\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438, \u043c\u044b \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 proration mode \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 \u0446\u0435\u043d\u0443 \u0433\u043e\u0434\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043f\u043e\u0447\u0442\u0438 \u0432 3 \u0440\u0430\u0437\u0430, \u043d\u043e \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a\u0430\u044f \u0442\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430, \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 proration mode, \u043f\u043e \u043b\u043e\u0433\u0438\u043a\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0451 \u0442\u0443 \u0436\u0435 <strong>DEVELOPER_ERROR<\/strong>. \u041d\u043e \u043d\u0435\u0442, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_UNAVAILABLE\"><strong><u>SERVICE_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 2). \u0415\u0435 \u0436\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043b\u0435\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 proration mode (\u044d\u0442\u043e int, \u0430 \u043d\u0435 enum, \u043d\u0430\u0441 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442), \u0438 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 purchaseToken. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u0440\u043e <strong>SERVICE_UNAVAILABLE<\/strong> \u2013 \u00abNetwork connection is down\u00bb. \u0422\u0430\u043a, \u0441\u0442\u043e\u043f\u2026<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0449\u0435 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e \u0435\u0449\u0435 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u2013 \u0432 \u043a\u0435\u0439\u0441\u0435 \u0441 <strong>ERROR<\/strong> \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 <strong>\u041d\u0415<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041e\u041a\u00bb (\u0442\u043e \u0435\u0441\u0442\u044c, \u0442\u0435\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043d\u0430\u0437\u0430\u0434) \u0432 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/PurchasesUpdatedListener#onPurchasesUpdated(com.android.billingclient.api.BillingResult,%20java.util.List%3Ccom.android.billingclient.api.Purchase%3E)\"><u>onPurchasesUpdated()<\/u><\/a> \u043f\u0440\u0438\u0448\u043b\u043e, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <strong>ERROR<\/strong>, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <strong>SERVICE_UNAVAILABLE<\/strong> \u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 <strong>USER_CANCELED<\/strong> (\u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u041e\u041a\u00bb \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435, \u0442\u043e \u043c\u044b, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043c <strong>SERVICE_UNAVAILABLE<\/strong>).<\/p>\n<p>\u041d\u0443 \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 <strong>SERVICE_UNAVAILABLE<\/strong> \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442, \u0442\u0443\u0442 \u043d\u0435 \u0441\u043e\u0432\u0440\u0430\u043b\u0438.<\/p>\n<p>\u0412\u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c, honorable mentions.<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#BILLING_UNAVAILABLE\"><strong><u>BILLING_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 3). \u0413\u0443\u0433\u043b \u043f\u043e\u044f\u0441\u043d\u044f\u0435\u0442, \u0447\u0442\u043e \u00abBilling API version is not supported for the type requested\u00bb. \u042f \u0441\u043c\u043e\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u0443 \u043e\u0448\u0438\u0431\u043a\u0443, \u0440\u0430\u0437\u043b\u043e\u0433\u0438\u043d\u0438\u0432\u0448\u0438\u0441\u044c \u0438\u0437 Google-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 \u0425\u0443\u0430\u0432\u0435\u0435 \u0431\u0435\u0437 Google Play Services. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445, \u0433\u0434\u0435 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438 Google Play.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_DISCONNECTED\"><strong><u>SERVICE_DISCONNECTED<\/u><\/strong><\/a> (responseCode -1). \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u0441\u044f \u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Google Play. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438, \u0435\u0441\u043b\u0438 Play Store \u0432\u0434\u0440\u0443\u0433 \u0440\u0435\u0448\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0445\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Billing Library, \u043a\u0430\u043a \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u0410 \u0435\u0449\u0435 \u043c\u044b \u0441 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_DISCONNECTED\"><u>\u0433\u0443\u0433\u043b\u043e\u043c<\/u><\/a> \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c retry policy, \u0435\u0441\u043b\u0438 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0441\u0451 \u0436\u0435 \u043f\u0440\u0438\u0434\u0435\u0442 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#SERVICE_TIMEOUT\"><strong><u>SERVICE_TIMEOUT<\/u><\/strong><\/a> (responseCode -3). \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c\u043e \u0437\u0430 \u0441\u0435\u0431\u044f \u2014 \u043c\u044b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Google Play.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#FEATURE_NOT_SUPPORTED\"><strong><u>FEATURE NOT SUPPORTED<\/u><\/strong><\/a> (responseCode -2). \u0412 \u043a\u043b\u0430\u0441\u0441\u0435 BillingClient \u0435\u0441\u0442\u044c \u043f\u044f\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.FeatureType\"><u>FeatureType<\/u><\/a>. \u0418\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient#isFeatureSupported(java.lang.String)\"><u>billingClient.isFeatureSupported(BillingClient.FeatureType.\u041d\u0443\u0436\u043d\u0430\u044f\u0424\u0438\u0447\u0430)<\/u><\/a>. \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 (Xiaomi Mi A2 Lite) <strong>FEATURE_NOT_SUPPORTED<\/strong> \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f SUBSCRIPTIONS_ON_VR. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u043b\u044f IN_APP_ITEMS_ON_VR, \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0438\u0447, \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c OK.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_NOT_OWNED\"><strong><u>ITEM_NOT_OWNED<\/u><\/strong><\/a> (responseCode 8). \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0438\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0430.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_ALREADY_OWNED\"><strong><u>ITEM_ALREADY_OWNED<\/u><\/strong><\/a> (responseCode 7). \u0410 \u0442\u0443\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2013 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043a\u0443\u043f\u0438\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c. \u0412 \u0442\u0430\u043a\u043e\u043c \u043a\u0435\u0439\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c UI \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0435\u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0439.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0421\u0430\u043c\u0430\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0441\u0430\u043c\u0430\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0443\u0442\u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f in-app purchases \u2014 \u044d\u0442\u043e <a href=\"https:\/\/developer.android.com\/reference\/com\/android\/billingclient\/api\/BillingClient.BillingResponseCode#ITEM_UNAVAILABLE\"><strong><u>ITEM_UNAVAILABLE<\/u><\/strong><\/a> (responseCode 4). \u041e\u043d\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043d\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u043f\u043e\u0447\u0435\u043c\u0443. \u0410 \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u0435: \u043e\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0434\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0447\u0435\u043a-\u043b\u0438\u0441\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0435\u0435 \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0430\u0448 test track \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 Billing Library. \u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u2014 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043d\u0430 \u0434\u0435\u0431\u0430\u0436\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 applicationId, \u043d\u043e \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441\u0431\u043e\u0440\u043a\u0430 \u0441 Billing Library \u0431\u044b\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 Play Console.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 test track \u0433\u0443\u0433\u043b-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f internal testing \u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0430\u043b\u044c\u0444\u044b\/\u0431\u0435\u0442\u044b. \u0422\u0430\u043c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 How testers join your test, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 Play Console \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430 activate, \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/568902\/\"><u>\u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0441 \u0433\u0443\u0433\u043b-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u043c. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u044f\u043a\u043e\u0435, \u0438 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><code>applicationId<\/code> \u0441\u0431\u043e\u0440\u043a\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430, \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 applicationId \u0438\u0437 Play Console. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0443\u0444\u0444\u0438\u043a\u0441 \u0432 \u0434\u0435\u0431\u0430\u0436\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c email-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Setup \u2192 License Testing \u0432 \u043b\u0435\u0432\u043e\u043c \u043c\u0435\u043d\u044e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 (\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f), \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u043b\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u0430 \u043d\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u043b\u044e\u0441, \u0447\u0442\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c <a href=\"https:\/\/developer.android.com\/google\/play\/billing\/test#renewals\"><u>\u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/u><\/a>. \u041d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u043d\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0437\u043d\u0430\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ol>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0430\u0433\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c, \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0438\u0442\u044c ITEM_UNAVAILABLE. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u0439 \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442.<\/p>\n<h3>\u041f\u0440\u043e Adapty<\/h3>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c Adapty SDK \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, Adapty \u0434\u0430\u0451\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/adapty.io\/subscription-analytics?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0433\u043e\u0440\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, <a href=\"https:\/\/habr.com\/ru\/company\/adapty\/blog\/564748\/\">\u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0410\/\u0411 \u0442\u0435\u0441\u0442\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0443\u0447\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/adapty.io\/return-subscribers?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u041f\u0440\u043e\u043c\u043e-\u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438<\/a> \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u043e\u0442\u0442\u043e\u043a \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>Open source SDK \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0438 API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/adapty.io?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=blogpost_android_error-codes-and-testing\">\u041f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u044d\u0442\u0438\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438<\/a>, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/575866\/\"> https:\/\/habr.com\/ru\/articles\/575866\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-388899","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/388899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=388899"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/388899\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=388899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=388899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=388899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}