Hi all,
I’m also going insane with getting inapppurchase running on Android.
I made the steps from the docu. I found the rsa-key on the playstore.
Store {
id: storeSoomla
version: 1
secret: "myOwndefinedSecret" // replace with your Soomla secret
androidPublicKey: "MIIBIjAN.... much more signs"
goods: [
LifetimeGood {
id: fullVersionGood
itemId: "upgrade.eichelmann2022"
name: "Upgrade Vollversion"
description: "Alle 935 Winzer und ihre Weine 2022"
purchaseType: StorePurchase {
id: myAppSubPurchase
productId: fullVersionGood.itemId
}
}
]
onItemPurchased: {
NativeDialog.confirm("Info", "Successfully bought: " + itemId, null, false)
}
onInsufficientFundsError: {
NativeDialog.confirm("Fehler",
"Der Kauf konnte nicht abgeschlossen werden. Bitte überprüfen Sie Ihre App-Store Einstellungen.",
function(ok) {
if (ok) {
// Trigger credits purchase right from dialog
storeSoomla.buyItem(fullVersionGood.itemId)
}
},
true)
}
onRestoreAllTransactionsFinished: {
}
onItemNotFoundError: {
NativeDialog.confirm("Error", "Not found", function(ok) {
if(ok) {
// confirmBtn.text = "Confirmed!"
}
})
}
onUnexpectedError: {
NativeDialog.confirm("Error", "UnexpectedError", function(ok) {
if(ok) {
// confirmBtn.text = "Confirmed!"
}
})
}
}
Within the pro I added the plugin und in gradle also.
But the only thing when I try to test it in the closed test of the playstore I get my “UnexpectedError
” dialog.
Any hints? Is the rsa-key from the monitarization settings page realy the right one?
thx,
Patrik