Search Unity

ProcessPurchase is called for another Apple ID pending purchases on app start

Discussion in 'Unity IAP' started by S-Artur, Sep 7, 2017.

  1. S-Artur

    S-Artur

    Joined:
    Feb 18, 2013
    Posts:
    4
    I use server side purchases validation. And it's possible to get pending transactions(by ProcessPurchase call) which have been started by another Apple ID while previous game launch. Problem is what payload inside receipt(PurchaseEventArgs.Product.receipt) is associated with current Apple ID. That's why I can't validate this transactions correctly on server side. Do you know how to fix it? Thank you.
     
    Last edited: Sep 7, 2017
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @S-Artur

    Could you clarify the issue you are having a bit more? I think this is expected behavior. Receipt Validation will only indicate if the purchase has a valid receipt. It is up to the developer to persist what user purchased which items.
     
  3. S-Artur

    S-Artur

    Joined:
    Feb 18, 2013
    Posts:
    4
    Check if receipt is valid is not enough. I try to find current Transaction ID among Pending transactions inside Validation Response from Apple. But in this case Validation Response contains only pending transactions for current user - whose payload i sent.