Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

ChickenOutbreak2 Demo

 import Felgo 4.0
 import QtQuick 2.0

 Store {
   id: store

   //Component.onCompleted: printStoreProductLists()

   version: 1
   // Replace with your own custom secret
   secret: ""
   androidPublicKey: ""

   property alias blackHen : blackHenGood
   property alias noAdsGood: noAdsGood

   property alias money: moneyCurrency
   property alias saveit: saveitCurrency

   property alias money1Pack: money1Pack
   property alias money2Pack: money2Pack
   property alias money3Pack: money3Pack
   property alias money4Pack: money4Pack

   property alias saveit1Pack: saveit1Pack
   property alias saveit2Pack: saveit2Pack
   property alias saveit3Pack: saveit3Pack
   property alias saveit4Pack: saveit4Pack

   goods: [
     LifetimeGood {
       id: blackHenGood
       itemId: "black_hen_id"
       name: "Black Hen"
       description: "A new badass looking skin for your Hen"
       purchaseType: StorePurchase { id: blackHenPurchase; productId: blackHenGood.itemId; price: 1.79;}
     },
     LifetimeGood {
       id: noAdsGood
       itemId: "no_ads_id_cob"
       name: "No Ads"
       description: "Remove the ads"
       purchaseType: StorePurchase { id: noAdsPurchase; productId: noAdsGood.itemId; price: 0.89; }
     }
   ]

   currencies: [
     Currency { id: moneyCurrency; itemId: "currency_money_id"; name: "money";},
     Currency { id: saveitCurrency; itemId: "currency_saveit_id"; name: "saveit";}
   ]

   currencyPacks: [
     CurrencyPack {
       id: money1Pack
       itemId: "money_pack_100_id"
       name: "100 Coins"
       description: "100 Coins as ingame credit"
       currencyId: moneyCurrency.itemId // The currency you want to offer with this pack
       currencyAmount: 100
       purchaseType:  StorePurchase { id: money1Purchase; productId: money1Pack.itemId; price: 0.89 }
     },
     CurrencyPack {
       id: money2Pack
       itemId: "money_pack_300_id"
       name: "300 Coins"
       description: "300 Coins as ingame credit"
       currencyId: moneyCurrency.itemId
       currencyAmount: 300
       purchaseType:  StorePurchase { id: money2Purchase; productId: money2Pack.itemId; price: 1.79 }
     },
     CurrencyPack {
       id: money3Pack
       itemId: "money_pack_800_id"
       name: "800 Coins"
       description: "800 Coins as ingame credit"
       currencyId: moneyCurrency.itemId
       currencyAmount: 800
       purchaseType:  StorePurchase { id: money3Purchase; productId: money3Pack.itemId; price: 3.59 }
     },
     CurrencyPack {
       id: money4Pack
       itemId: "money_pack_1200_id"
       name: "1400 Coins"
       description: "1400 Coins as ingame credit"
       currencyId: moneyCurrency.itemId
       currencyAmount: 1400
       purchaseType:  StorePurchase { id: money4Purchase; productId: money4Pack.itemId; price: 5.49 }
     },

     CurrencyPack {
       id: saveit1Pack
       itemId: "saveit_pack_1_id"
       name: "1 Angel"
       description: "1 Life Saver Angel"
       currencyId: saveitCurrency.itemId // The currency you want to offer with this pack
       currencyAmount: 1
       purchaseType:  StorePurchase { id: saveit1Purchase; productId: saveit1Pack.itemId; price: 0.89 }
     },
     CurrencyPack {
       id: saveit2Pack
       itemId: "saveit_pack_2_id"
       name: "3 Angels"
       description: "3 Life Saver Angels"
       currencyId: saveitCurrency.itemId
       currencyAmount: 3
       purchaseType:  StorePurchase { id: saveit2Purchase; productId: saveit2Pack.itemId; price: 1.79 }
     },
     CurrencyPack {
       id: saveit3Pack
       itemId: "saveit_pack_3_id"
       name: "10 Angels"
       description: "10 Life Saver Angels"
       currencyId: saveitCurrency.itemId
       currencyAmount: 10
       purchaseType:  StorePurchase { id: saveit3Purchase; productId: saveit3Pack.itemId; price: 3.59 }
     },
     CurrencyPack {
       id: saveit4Pack
       itemId: "saveit_pack_4_id"
       name: "20 Angels"
       description: "20 Life Saver Angels"
       currencyId: saveitCurrency.itemId
       currencyAmount: 20
       purchaseType:  StorePurchase { id: saveit4Purchase; productId: saveit4Pack.itemId; price: 5.49 }
     }
   ]

   onInsufficientFundsError: {
     console.debug("Store: insufficientFunds")
   }
   onItemNotFoundError:  {
     console.debug("Store: ItemNotFound")
   }
   onItemPurchased: {
     console.debug("Store: ItemPurchased")
   }
   onStorePurchaseCancelled: {
     console.debug("Store: Cancelled purchase")
   }

   onStorePurchased: {
      audioManager.play(audioManager.idPLING)
   }

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded