Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Updating IAP, but accidentally deleted Assets/Plugins/UnityPurchasing before moving the two files.

Discussion in 'Unity IAP' started by Sun-Pengfei, Jun 19, 2021.

  1. Sun-Pengfei

    Sun-Pengfei

    Joined:
    Nov 12, 2015
    Posts:
    35
    Hi, I have an old working project using the old version IAP. I opened it in new version of unity 2021, then there're lots of compile errors, two saying there's a naming conflict for "Purchasing.Common" that's in "Plugins/UnityPurchasing/Bin". I remembered that unity reminded me to update IAP but I always ignores that notice. Then I thought maybe I could deleted the whole UnityPurchasing folder and reimport them in PackageManager. So I deleted that whole UnityPurchasing folder.

    However in PackageManager for "Unity IAP 2.3.0" it says it's obsolete. Then this post "https://forum.unity.com/threads/a-c...-unity-iap-plugin-3-0-0.1009678/#post-6918290" says I need to move two files manually. However I have deleted the whole folders already.

    What I did step by step:
    1 Deleted UnityPurchasing folder.
    2 Then in services window under IAP, clicked Install latest version. Then it seems the "In App Purchasing" 3.2.2 version is installed into "Packages".

    But there're still at least two compile errors:
    "Assets\Scripts\Store\Purchaser.cs(261,52): error CS0103: The name 'GooglePlayTangle' does not exist in the current context"
    "Assets\Scripts\Store\Purchaser.cs(262,13): error CS0103: The name 'AppleTangle' does not exist in the current context"

    What should I do? Thank you!
     
  2. Sun-Pengfei

    Sun-Pengfei

    Joined:
    Nov 12, 2015
    Posts:
    35
    @nicholasr Could you check this issue please? Thank you!
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You just need to create the tangle files again by going to the Window/Unity IAP menu and choose Receipt Validation Obfuscator
     
  4. Sun-Pengfei

    Sun-Pengfei

    Joined:
    Nov 12, 2015
    Posts:
    35
    OK, the compile errors are gone now, thank you very much!