Search Unity

[Closed] Process Purchase Event get called on each App load - iOS

Discussion in 'Unity IAP' started by siddharth3322, May 28, 2017.

Thread Status:
Not open for further replies.
  1. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    At present when I launch the app, each time ProcessPurchase event get called in iPhone device.
    Though upto now I have not pressed any purchase related buttons.

    Yes I have setup subscription purchase within my app and before I have purchased subscription in sandbox environment two to three times but now their time period is expired.

    Here you have debug log for actual event happening:

    Screen Shot 2017-05-28 at 4.15.39 PM.png

    As per my past experience, ProcessPurchase event require to call only two times when a user purchase something or at restore purchase time.
    So why its get called each application launch that I can't able to understand!!!
    Please give some help in this so I can complete my Unity IAP related thing.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @siddharth3322

    Would you be able to provide a bit more information about this issue?
    • Would you be able to provide a copy of your purchasing script (or any relevant scripts)?
    • What version of the editor are you using?
    • What version of the plugin are you using?
     
  3. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    @ap-unity I knew that definitely, you will reply me :)

    Yes I am attaching actual copy of my PurchaseManager script so you can perfectly check about this.
    See attached file.

    I was using Unity version 5.2.4p4

    Unity IAP version 1.11.1

    Now I am hopping for some awesome reply for this.
     

    Attached Files:

  4. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @siddharth3322

    Sorry for the delayed response.

    Are you still having this issue? If there were a pending transaction that was stuck somewhere, then it should flush itself out eventually. Looking at your purchasing script, nothing really jumps out at me as incorrect.

    Unity IAP requires at least version 5.3. We don't support any versions of the Editor before that. If you are using a different version of the editor, then please let me know.
     
Thread Status:
Not open for further replies.