سلام , من میخوام از برداخت درون برنامه ای بازار اسفاده کنم

داکیومنتشن رو خودنم , فقط با قسمت developerPayload مشکل دارم , سیستم پرداخت درون برنامه ای بازار که از روش گوگل استفاده میکنه یه پخشی داره که یه اطالاعاتی با پرداخت میفرستی که پس تایید پرداخت به تو برمی گردونه

من می تونم این اطلاعات رو برای هر گوشی به صورت یونیک بسازم , حتی در صورت فکتوری ریست هم بفهمم گوشی همون گوشیه و پرداخت رو تایید کنم ولی مشکل اینجاست اگه کاربر گوشی رو عوض کنه من نمی تونم همون رشته رمز گذاری شده رو بسازم

و مشکل بزرگتر اینکه که بازار خرید رو چون قبلا تایید شده , لغو میکنه

و مشکل خیلی بزرگتر اینکه بازار اطلاعاتی از کاربر به من نمیده که بتونم با توجه اون رشته رز گذاری شده بسازم

راه حل ؟

/** Verifies the developer payload of a purchase. */
boolean verifyDeveloperPayload(Purchase p) {
String payload = p.getDeveloperPayload();


/*
* TODO: verify that the developer payload of the purchase is correct. It will be
* the same one that you sent when initiating the purchase.
*
* WARNING: Locally generating a random string when starting a purchase and
* verifying it here might seem like a good approach, but this will fail in the
* case where the user purchases an item on one device and then uses your app on
* a different device, because on the other device you will not have access to the
* random string you originally generated.
*
* So a good developer payload has these characteristics:
*
* 1. If two different users purchase an item, the payload is different between them,
* so that one user's purchase can't be replayed to another user.
*
* 2. The payload must be such that you can verify it even when the app wasn't the
* one who initiated the purchase flow (so that items purchased by the user on
* one device work on other devices owned by the user).
*
* Using your own server to store and verify developer payloads across app
* installations is recommended.
*/


return true;
}