docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerPurchaseAppleappstoreRequest

    PlayerPurchaseAppleappstoreRequest

    Inheritance
    object
    PlayerPurchaseAppleappstoreRequest
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Economy
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class PlayerPurchaseAppleappstoreRequest

    Constructors

    PlayerPurchaseAppleappstoreRequest(string, string, int, string)

    Initializes a new instance of the PlayerPurchaseAppleappstoreRequest class.

    Declaration
    [Preserve]
    public PlayerPurchaseAppleappstoreRequest(string id = null, string receipt = null, int localCost = 0, string localCurrency = null)
    Parameters
    Type Name Description
    string id

    ID of the purchase. (required).

    string receipt

    Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded. (required).

    int localCost

    The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199. (required).

    string localCurrency

    The ISO-4217 currency code with which the player purchased the IAP. (required).

    Properties

    Id

    ID of the purchase.

    Declaration
    [Preserve]
    public string Id { get; set; }
    Property Value
    Type Description
    string

    ID of the purchase.

    LocalCost

    The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199.

    Declaration
    [Preserve]
    public int LocalCost { get; set; }
    Property Value
    Type Description
    int

    The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199.

    LocalCurrency

    The ISO-4217 currency code with which the player purchased the IAP.

    Declaration
    [Preserve]
    public string LocalCurrency { get; set; }
    Property Value
    Type Description
    string

    The ISO-4217 currency code with which the player purchased the IAP.

    Receipt

    Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded.

    Declaration
    [Preserve]
    public string Receipt { get; set; }
    Property Value
    Type Description
    string

    Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)