GetIntroductoryPrice

Description

Get the introductory price of the Product.

Products with no introductory price return a "not available" value. Apple store Products with an introductory price return a value formatted as “0.99USD”.

Google Play Products with an introductory price return a value formatted as “$0.99”.

Products in the Apple store return “not available” if the application does not support iOS version 11.2+, macOS 10.13.2+, or tvOS 11.2+.

Declaration

public static string GetIntroductoryPrice(ShopProductNames product)

Parameters

NameDescription

product

An enum member generated from Settings Window.

Requires using Gley.EasyIAP;

Return

string - indicate the introductory price of the Product.

Example

Test.cs
using Gley.EasyIAP;
using UnityEngine.UI;

public class Test : MonoBehaviour
{
    [SerializeField] Text info; 
    public void GetValue()
    {
       info.text = Gley.EasyIAP.API.GetIntroductoryPrice(ShopProductNames.YourSubscription);
    }
}

Last updated