예제 #1
0
 public void productPurchased(string json)
 {
     if (purchaseSuccessfulEvent != null)
     {
         purchaseSuccessfulEvent(StoreKitTransaction.transactionFromJson(json));
     }
 }
 public void transactionUpdated(string json)
 {
     if (transactionUpdatedEvent != null)
     {
         transactionUpdatedEvent(StoreKitTransaction.transactionFromJson(json));
     }
 }
예제 #3
0
    public void productPurchaseAwaitingConfirmation(string json)
    {
        if (productPurchaseAwaitingConfirmationEvent != null)
        {
            productPurchaseAwaitingConfirmationEvent(StoreKitTransaction.transactionFromJson(json));
        }

        if (autoConfirmTransactions)
        {
            StoreKitBinding.finishPendingTransactions();
        }
    }
    public void productPurchaseAwaitingConfirmation(string json)
    {
        StoreKitTransaction transaction = StoreKitTransaction.transactionFromJson(json);

        if (productPurchaseAwaitingConfirmationEvent != null)
        {
            productPurchaseAwaitingConfirmationEvent(transaction);
        }

        Debug.Log("purchase json:" + json);

        startServerVerify(transaction);

/*		if( autoConfirmTransactions )
 *                      StoreKitBinding.finishPendingTransactions();
 */
    }