Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

[solve] Problem to confirm IOS Subscriptions

Discussion in 'Unity IAP' started by Le_Poulet, Jun 17, 2019.

  1. Le_Poulet

    Le_Poulet

    Joined:
    May 18, 2017
    Posts:
    24
    Hi,

    I am in trouble with the subscription integration: On sandbox environnement, i can subscribe and I recieved the callback from the store, but when I restart the app, the store keep sending me the receipt and it seems the PurchaseProcessingResult.Complete doesn't work.

    Is it a sandbox problem or is it in my script? Does the logic differ from the classic products, which are working correctly, even in sandbox.

    Thank you.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You only get the ProcessPurchase callback once, during initial purchase. Or during the Restore process
     
    Last edited: Jun 20, 2019
  3. Le_Poulet

    Le_Poulet

    Joined:
    May 18, 2017
    Posts:
    24
    After some research on my script, I saw I did a restorepurchase on every initialization. I commented this and everything seems working now