Hi I am developing an app which requires end user to login to the app's 
back-end server with his google account. This app supports in-app 
purchasing for a non-consumable item. Once the end user makes the purchase 
he could be upgraded as a premium user. The back-end server will store the 
purchased information and also the account information hence the back-end 
server knows if the login account is the premium user or not. 

This idea works well if the end user only has one google account. However 
there might be a case that the end user has multiple google account e.g. 
account A and account B.
A problem will happen if the login account is different the payment 
account. Below is the example:
1. End user uses account A to login to app's back-end server. 
2. End user make in-app purchase, but using account B for the payment.
3. Back-end server verifies the purchase receipt and upgrades account A as 
premium user.  
4. After some while the end forgets his original login account, so he 
decides to use account B to login the back-end server. Since from the app's 
back-end server, account B never makes an upgrade purchase, so the app 
notifies end user he should purchase an upgrade to be a premium user.
5. End user then make a purchase however the google play will notify end 
user that he already owns the item since he did the purchase for account A 
before.

This may be not the common cases but it might happen and the app developer 
should try to prevent this.
The way I could think about to avoid this situation is enforce the same 
account for login and payment. However I could not find any APIs or method 
to get the in-app purchase account. Is there anyway to deal with this 
situation? 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1a342664-adb3-4396-b5e5-0be5bdf2747c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to