Esempio n. 1
0
        public void postReceiptData(string nullData)
        {
            NpPurchaseReceiptData obj = new NpPurchaseReceiptData(NpPurchaseAndroid.GetProductId(), NpPurchaseAndroid.GetReceipt(), NpPurchaseAndroid.GetSignature(), string.Empty);

            if (this.purchaseSuccessAction != null)
            {
                this.purchaseSuccessAction(obj);
            }
        }
Esempio n. 2
0
 public void ComparisonRequest(Dictionary <string, string> items, Action <string> _comparisonSuccessAction, Action <string> _comparisonFailedAction)
 {
     this.comparisonSuccessAction = _comparisonSuccessAction;
     this.comparisonFailedAction  = _comparisonFailedAction;
     foreach (KeyValuePair <string, string> keyValuePair in items)
     {
         this.SetRequestProduct(keyValuePair.Key);
         this.SetRequestProductPrice(keyValuePair.Key + "," + keyValuePair.Value);
     }
     NpPurchaseAndroid.RequestProducts(NpPurchase.REQUEST_PRODUCTS_COMPARE);
 }
Esempio n. 3
0
        public void RequestProducts(string[] productId, Action <string> _requestProductSuccessAction, Action <string> _requestProductFailedAction)
        {
            this.requestProductSuccessAction = _requestProductSuccessAction;
            this.requestProductFailedAction  = _requestProductFailedAction;
            int num = productId.Length;

            for (int i = 0; i < num; i++)
            {
                string requestProduct = productId[i];
                this.SetRequestProduct(requestProduct);
            }
            NpPurchaseAndroid.RequestProducts(NpPurchase.REQUEST_PRODUCTS_NOMAL);
        }
Esempio n. 4
0
 public bool GetIsPurchaseSupport()
 {
     return(NpPurchaseAndroid.GetIsPurchaseSupport());
 }
Esempio n. 5
0
 public void RestoreStart(Action <string> _restoreSuccessAction, Action <string> _restoreFailedAction)
 {
     this.restoreSuccessAction = _restoreSuccessAction;
     this.restoreFailedAction  = _restoreFailedAction;
     NpPurchaseAndroid.RestoreStart();
 }
Esempio n. 6
0
 public void RetryTransaction(Action <NpPurchaseReceiptData> _purchaseSuccessAction, Action <bool> _retryRequestFinishAction)
 {
     this.purchaseSuccessAction    = _purchaseSuccessAction;
     this.retryRequestFinishAction = _retryRequestFinishAction;
     NpPurchaseAndroid.RetryConsume();
 }
Esempio n. 7
0
 public void SuccessPurchase(Action transactionEndSuccessAction, Action <string> transactionEndFailedAction)
 {
     this.mTransactionEndSuccessAction = transactionEndSuccessAction;
     this.mTransactionEndFailedAction  = transactionEndFailedAction;
     NpPurchaseAndroid.SuccessPurchase();
 }
Esempio n. 8
0
 public void Purchase(string productId, bool isConsumable, Action <NpPurchaseReceiptData> _purchaseSuccessAction, Action <string> _purchaseFailedAction)
 {
     this.purchaseSuccessAction = _purchaseSuccessAction;
     this.purchaseFailedAction  = _purchaseFailedAction;
     NpPurchaseAndroid.purchase(productId, isConsumable);
 }
Esempio n. 9
0
 public void Init(string publicKey, Action <bool> _initFinishAction)
 {
     this.initFinishAction = _initFinishAction;
     NpPurchaseAndroid.Init(publicKey, base.name);
 }
Esempio n. 10
0
 private void SetRequestProduct(string productId)
 {
     NpPurchaseAndroid.SetRequestProduct(productId);
 }
Esempio n. 11
0
 private void SetRequestProductPrice(string productPrice)
 {
     NpPurchaseAndroid.SetComparisonProduct(productPrice);
 }
Esempio n. 12
0
 private void RetryTransactionStartUp()
 {
     NpPurchaseAndroid.RetryTransactionStartUp();
 }
Esempio n. 13
0
 public void AllConsumption()
 {
     NpPurchaseAndroid.AllConsumption();
 }