using System; namespace UnityEngine.Purchasing { /// /// An interface to native underlying store systems. Provides a base for opaquely typed /// communication across a language-bridge upon which additional functionality can be composed. /// Is used by most public IStore implementations which themselves are owned by the purchasing /// core. /// public interface INativeStore { /// /// Call the Store to retrieve the store products. The `IStoreCallback` will be call with the retrieved products. /// /// The catalog of products to retrieve the store information from in JSON format. void RetrieveProducts(String json); /// /// Call the Store to purchase a product. The `IStoreCallback` will be call when the purchase is successful. /// /// The product to buy in JSON format. /// A string used by some stores to fight fraudulent transactions. void Purchase(string productJSON, string developerPayload); /// /// Call the Store to consume a product. /// /// Product to consume in JSON format. /// The transaction id of the receipt to close. void FinishTransaction(string productJSON, string transactionID); } delegate void UnityPurchasingCallback(string subject, string payload, string receipt, string transactionId, string originalTransactionId, bool isRestored); }