Unity UDP and Unity IAP


I use unity IAP in the project, they work stably in the Android version from Google Play (all products are created through the code, without first entering in the IAP Catalog - so it is empty in Unity, but I exported the CSV of products from Google Play Console to UDPConsole). Now I need to publish my game to other stores, I downloaded Unity UDP. I was able to initialize it. But how do I close the SandboxTesting stages to be able to send the APK via the UDP Console.

6437354--720293--upload_2020-10-20_17-48-28.png

1 Like

You need to initialize the UDP SDK on an Android device instead of the editor.

Please make sure you didn’t mix the implementations.
https://docs.unity3d.com/Packages/com.unity.purchasing.udp@1.2/manual/Do_not_mix_the_implementations.html?_ga=2.27505660.1595238515.1603074313-784943080.1589011093

If you use Unity IAP to implement UDP, you don’t need to initialize UDP in the code, just switch the IAP target to UDP.
6439313--720656--upload_2020-10-21_10-17-16.png

6439313--720653--upload_2020-10-21_10-16-45.jpg

In other words, I just need to change the target platform for Unity IAP and leave UDP installed. My UDP Manager script is not needed then? I just need to run the APK on my phone and all two items will be closed immediately in SandboxTesting? Or will you have to wait for some time? Only after closing the SandboxTesting section can I upload the APK to the Binary section and save it?

All works! THanks

2 Likes

Hi

Please share code of adding product into builder and initialize purchasing. I struggling to implement UDP.

I understand we must not mix the implementation. I want to use Unity IAP (version 2.1.1) to implement UDP. When I select the UDP settings menu option, there is no problem retrieving the settings from the UDP console. But when I want to switch the Unity IAP Android target to UDP, I get this window:

6654127--760327--upload_2020-12-24_4-1-12.png

By choosing “go” and download/import, I end up with the following window:

6654127--760330--upload_2020-12-24_4-5-13.png

uninstall UDP component of Unity IAP?? It doesn’t seem right. How do I resolve this problem?

hello same problem here did you resolved this problem?
if yes then can you please give me some suggestions.

@NamelessDeveloper777 I would suggest jumping onto the latest version of UIAP (3.2.x) as it has the least amount of friction with downloading dependencies from the asset store.