Hi!
I am using the Store plugin and therefore have a Store defined in my main.qml as in the tutorial
Store {
id: spongeStore
version: 1
// Replace with your own custom secret
secret: "com.xxmasseveloper.sponge.store.secret"
// From Google Play Developer Console
androidPublicKey: "somecode"
goods: [
SingleUseGood {
id: skillPoint
itemId: "skill_point_id"
name: "Skill Point"
description: "A skill point to enhance your sponges abilities"
purchaseType: StorePurchase { id: skillPointPurchase; productId: skillPoint.itemId; price: 0.89;}
}
]
onStorePurchased: {
if(itemId === skillPoint.itemId){
spongeController.increaseAvailableSkillPoints();
}
}
onStorePurchaseStarted: {
console.debug("Store purchases started with id:", itemId)
}
onStorePurchaseCancelled: {
console.debug("Store purchases cancelled with id:", itemId)
}
onRestoreAllTransactionsFinished: {
console.debug("Restore all transactions succeeded:", success)
}
onRestoreAllTransactionsStarted: {
console.debug("Restore all transactions started")
}
onItemNotFoundError: {
console.debug("Item for transaction not found:", itemId)
}
onInsufficientFundsError: {
console.debug("Not enough gold nuggets for that one...")
nativeUtils.displayMessageBox("Out of Gold", "You're out of gold, you can however purchase some nuggets again.")
}
}
In the onCompleted of the GameWindow i do the following:
Component.onCompleted: {
console.debug(spongeStore.printStoreProductLists());
}
The log output however is always: undefined
Do you know why or have any suggestions?