예제 #1
0
    public void Purchase(string SKU, string DeveloperPayload)
    {
        _processedSKU = SKU;
        GoogleProductTemplate product = _inventory.GetProductDetails(SKU);



        string title       = SKU;
        string describtion = "???";
        string price       = "?.??$";

        _CurrentSKU = SKU;

        if (product != null)
        {
            title       = product.Title;
            describtion = product.Description;
            price       = product.LocalizedPrice;
        }

        SA_EditorInApps.ShowInAppPopup(title, describtion, price, OnPurchaseComplete);
    }
 public void Show_InApp_Popup()
 {
     SA_EditorInApps.ShowInAppPopup("Product Title", "Product Describtion", "2.99$");
 }
    //--------------------------------------
    // Public Methods
    //--------------------------------------


    public override void Purchase(UM_InAppProduct product)
    {
        _CurrentProduct = product;
        SA_EditorInApps.ShowInAppPopup(product.DisplayName, product.Description, product.LocalizedPrice, OnPurchaseComplete);
    }