docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerPurchaseGoogleplaystoreRequest

    PlayerPurchaseGoogleplaystoreRequest

    Inheritance
    object
    PlayerPurchaseGoogleplaystoreRequest
    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 PlayerPurchaseGoogleplaystoreRequest

    Constructors

    PlayerPurchaseGoogleplaystoreRequest(string, string, string, int, string)

    Initializes a new instance of the PlayerPurchaseGoogleplaystoreRequest class.

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

    ID of the purchase. (required).

    string purchaseData

    A JSON encoded string returned from a successful in-app billing purchase. (required).

    string purchaseDataSignature

    A signature of the purchaseData returned from a successful in-app billing purchase. (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.

    PurchaseData

    A JSON encoded string returned from a successful in-app billing purchase.

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

    A JSON encoded string returned from a successful in-app billing purchase.

    PurchaseDataSignature

    A signature of the purchaseData returned from a successful in-app billing purchase.

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

    A signature of the purchaseData returned from a successful in-app billing purchase.

    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)