Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get apple id from In-app Purchase transaction_id

Tags:

ios

iphone

In my application when user will buy any product using In- app Purchase i can not force user please log in in my application [ That is apple condition]

When a user will buy any product apple just give a in app purchase transaction_id .

In that case i can not keep track any users information in my system. later when the user will restore his In - app purchase product in another device, without any user track/ apple id/ Unique ID i can not manage my application.

how to i can get apple users unique id by transaction_id..?

like image 842
Mohammad Atiour Islam Avatar asked Mar 04 '15 07:03

Mohammad Atiour Islam


1 Answers

The in-app purchase receipt fields do not have any PII (personally identifiable information). See details in the Receipt validation programming guide. In other words, you can not get user's apple-id from a transaction-id.

If you just want to be able to restore previous purchases, you can do so by restoring purchased products. See the details in In-app purchase programming guide

If you want to track the user for other purposes, you can have the user login in the app before showing them the purchase screens.

like image 177
Sinatra Avatar answered Oct 19 '22 03:10

Sinatra