public void buyProduct(string productId)
    {
        if(!isStoreLoaded) {

            IOSStoreKitResponce responce = new IOSStoreKitResponce ();
            responce.productIdentifier = productId;
            responce.error =  "Store kit not yet initialized";

            Debug.LogWarning("buyProduct shouldn't be called before store kit initialized");

            dispatch(TRANSACTION_FAILED, responce);

            return;
        }

        IOSNative.buyProduct(productId);
    }
    public void onTransactionFailed(string array)
    {
        string[] data;
        data = array.Split("|" [0]);

        IOSStoreKitResponce responce = new IOSStoreKitResponce ();
        responce.productIdentifier = data [0];
        responce.error =  data [1];

        dispatch(TRANSACTION_FAILED, responce);
    }
    public void onProductBought(string array)
    {
        string[] data;
        data = array.Split("|" [0]);
        IOSStoreKitResponce responce = new IOSStoreKitResponce ();
        responce.productIdentifier = data [0];
        responce.receipt = data [1];

        dispatch(PRODUCT_BOUGHT, responce);
    }