Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Please provide a document on how to set up the UDP store in the IAP package?

Discussion in 'Unity Distribution Portal (UDP)' started by fatogregnome, Jul 11, 2022.

  1. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
  2. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    When I use iap+google play, everything works fine.
    But when I use udp, I set the bulid target to udp, and when I use sandbox testing, the first initialization is successful, but when I switch the purchased item, the initialization of iap fails.
    So, I would like to ask if there is any documentation for using udp in combination with iap.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You don't want to initialize both! You must use one or the other. UDP is for targeting Asia stores, IAP is for Google Play and the Apple App Store. If you are targeting a UDP store, IAP can't communicate to Apple or Google. UDP documentation is here https://docs.unity3d.com/Packages/com.unity.purchasing.udp@2.2/manual/index.html
     
  4. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    but jeff, in the UDP document ,they say ,it is possible to use both,below text is quote from the document

    Using the UDP package and the Unity IAP package
    Unity recommends using the UDP package with Unity IAP package version 3.0.0 and above, accessible from the Package Manager.

     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    But you can't initialize both. Why would you want to?
     
  6. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    I don`t initialize both,only initialize the IAP package.
    But, like I said before, something went wrong.
    So, I hope you can provide a document on how to set up UDP store in IAP package.

    ----------------
    You can implement UDP in your game in one of the following ways.
    • Using the UDP Package only
    • Using the UDP package and Unity IAP package (for Unity IAP package versions 2.0.0+)
    • Using Unity IAP only (for Unity IAP package versions 1.22.0–1.23.5)
    --------------------

    The above description is from the manual. There are three ways mentioned in it. Does the second way (UDP+IAP)also need to fully implement all the steps described in the UDP document like the first way.
     
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    If you are only initializing IAP, then why are you using UDP? Again, are you targeting Asia stores? I provided the UDP documentation above.
     
  8. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    Yes, I have now released to GOOGLE PLAY using IAP.
    I want to further publish the app into UDP targeting Asia stores.
     
  9. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Got it! Yes, when you publish to Asia stores, you would not initialize IAP, only UDP
     
  10. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    I readed the UDP documentation, but that was for using UDP alone, and didn't describe how to use UDP and the IAP package together.
     
  11. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    Got it. thank you.