Sto implementando la fatturazione in-app nella mia app per sbloccare funzionalità premium. La fatturazione in-app viene impostata correttamente. Tutto sembra a posto, a parte la cosa del "payload degli sviluppatori".Quale dovrebbe essere il payload dello sviluppatore in Android app-fatturazione v3 api?
L'applicazione di esempio dice
/*
* 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.
*/
L'applicazione di esempio utilizza una stringa vuota come payload sviluppatore. La mia domanda è quale stringa usare come payload degli sviluppatori? Posso utilizzare l'ID e-mail principale dell'utente?
controllare questo collegamento: http://stackoverflow.com/questions/17196562/token-that-identify-the-user/17205999#17205999. Spero che risolva tutte le tue domande. – Maulik
Grazie Maulik.La risposta nel collegamento mi ha davvero aiutato :) –
Siete i benvenuti :) – Maulik