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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Other UDP and Play Store + Apple Store?

Discussion in 'Unity Distribution Portal (UDP)' started by GilbertoBitt, Sep 4, 2020.

  1. GilbertoBitt

    GilbertoBitt

    Joined:
    May 27, 2013
    Posts:
    111
    is a doubt i have! UDP add suporte for other types of IAP to make it available to those other stores right?
    if my have already have IAP using unity IAP and i add the package for UDP i need change anything to be able to sendo to those stores or since i already use IAP i just add suport to others in a click and just need configure on dashboard?
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    475
    You just need to change the target store form Google Play to UDP. One more thing that needs to note is that UDP currently does not support subscription products, so you may also need to remove subscription products.
    upload_2020-9-24_15-2-39.png
     
  3. metiscoda

    metiscoda

    Joined:
    Nov 18, 2013
    Posts:
    39
    Hi
    I'm having problems getting this to work. I have followed the steps outlined above, created an apk, and tested it using UDP sandbox. It seems to pass the tests (initializes and purchase is completed), but I don't get a dialog box when I touch the purchase button in the sandbox and I don't get the gems I'm supposed to get either. I used the same project that was submitted to Google Play (and worked there btw), and only changed the Target to UDP as above.

    I've attached my logs if you can determine anything from there. Also I use GameFoundation to process the purchase result, but that should be the same anyway?
    Thanks for any help you can provide.
     

    Attached Files:

  4. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    90
  5. Corvra

    Corvra

    Joined:
    Dec 30, 2019
    Posts:
    4
    Which callback are different? We are having the same issue with game released on IOS and Play store with working IAP purchases. Try to test it in UDP and we are getting through on the UDP side but nothing on the game side for unlocking what was purchased. Looking through the manual it talks about implementing HTTP. Or is that the part that needs to be implemented to get the successful purchase information.
     
  6. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    475
    The format of the receipt is different, what is the issue you are experiencing, and are there any device logs?
     
  7. Corvra

    Corvra

    Joined:
    Dec 30, 2019
    Posts:
    4

    Our app is released to google play and ios with working IAP. We are not using codeless IAP. We switched to UDP and are able to log in correctly and make a purchase. But the handlers for a successful purchase are never called.

    It looks like we're getting an invalid receipt

    2020-10-12 21:10:14.140 32317-32317/? I/UnityDistPlatform: [UDP] Querying Inventory
    2020-10-12 21:10:14.167 32317-32348/? I/Unity: Invalid receipt, not unlocking content
    Game.IAP.PurchaseController:ProcessPurchase(PurchaseEventArgs)
    UnityEngine.Purchasing.PurchasingManager:ProcessPurchaseIfNew(Product)
    UnityEngine.Purchasing.<>c__DisplayClass8_0:<Purchase>b__0(Boolean, String)
    System.Action`2:Invoke(T1, T2)
    UnityEngine.UDP.UdpIapBridge:OnPurchase(PurchaseInfo)
    System.Action:Invoke()
    UnityEngine.UDP.MainThreadDispatcher:Update()

    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    2020-10-12 21:10:14.202 32317-1527/? I/UnityDistPlatform: [UDP] [CreateOrderRunnable]Octopus Create Order Succeed.
    2020-10-12 21:10:14.233 32317-1529/? I/UnityDistPlatform: [UDP] [UDP] onGetProductsSucceeded
    2020-10-12 21:10:14.330 32317-1530/? I/UnityDistPlatform: [UDP] [UDP] onGetPurchaseSucceeded


    Is there somethingthing different for the validator related to UDP in this case? Are you not supposed to use the validator for UDP purchases?

    We were running into issues with restore with Google Play purchases with codeless so we switched back to what worked for our previous game. Using code from here https://answers.unity.com/questions/1515863/unity-codeless-iap-restore-google-play-purchase-no.html.
     
  8. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    475
    UDP doesn't support the IAP validator, so you may need to remove the validator.
     
    do2 likes this.
  9. Corvra

    Corvra

    Joined:
    Dec 30, 2019
    Posts:
    4
    Okay, thanks for the quick replies.
     
    SamOYUnity3D likes this.