Hello,
I’m using Cocos2d-x3.8 and the latest SDKBOX IAP for purchase subscriptions on android.
When purchase our subscriptions, Play store shows the finish purchasing overlay and I can purchase them.
But after this, onFailure event handler is called with the bellow error.
IAB returned null purchaseData or dataSignature (response: -1008:Unknown error), purchase: null
And sdkbox.IAP.restore()
also returns emply response.
My sdkbox_config.json is like this.
{
"android": {
"iap": {
"items": {
“my_item1”: {
"type": "non_consumable",
"id": “my.subscription.item.1”
},
"my_item2”: {
"type": "non_consumable",
"id": "my.subscription.item.2”
}
},
"key": “MY_KEY”
}
},
"ios": {
"iap": {
"items": {
}
}
}
}
Other SDKBOX’s event handlers work well.
And I tried to use sdkbox::IAP::enableUserSideVerification(true)
, but it doesn’t change anything.
Could anyone know how to get receipt and signature?
Thanks.