Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Economy integration with IAP examples wanted

Discussion in 'Economy' started by lambch0p, Nov 25, 2021.

  1. lambch0p

    lambch0p

    Joined:
    Oct 22, 2014
    Posts:
    62
    Hi,

    Are there any examples for integrating Economy with IAP?

    The Economy docs suggest there are but the link just goes to the IAP pages:
    From this page:
    https://docs.unity.com/economy/item-types.htm?tocpath=Resource types|_____1#Currency

    Under In-App Purchase integration, it states:

    5. Perform an IAP using Unity IAP. See Unity IAP and a code sample on how to integrate the two SDKs here.

    The link doesn't contain any mention of integration with Economy as far as I can see.
    https://docs.unity3d.com/Packages/com.unity.purchasing@latest/

    Thanks
    Mick
     
  2. EllieF_Unity

    EllieF_Unity

    Unity Technologies

    Joined:
    Nov 27, 2020
    Posts:
    39
    Hi Mick,

    Good spot on the documentation missing a link. I have forwarded that information to the relevant parties and have asked for a link to the code sample to provide to you. Please bear with me as I acquire the second link for you. Thanks for your patience.
     
    SebT_Unity likes this.
  3. Laurie-Unity

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    236
    Hi Mick,

    Following up on your request for Economy and IAP sample links:
    • Documentation and code samples for Unity IAP can be found here in the IAP package documentation
    • The IAP package also contains code samples covering the most common use cases, these can be installed from the IAP package page in the Package Manager.
    • The Economy package documentation contains code snippets for each of the API methods
    • The Economy package contains a sample that demonstrates Currencies, Inventory and Virtual Purchase implementation with a UI. This can be installed from the Economy package page in the Package Manager
    As we develop more samples and end to end demos we'll announce them on the forums.
    Thanks again for sharing your observation about links.
     
    soleron likes this.
  4. lambch0p

    lambch0p

    Joined:
    Oct 22, 2014
    Posts:
    62
    Thanks