Null Receipt and Signature response with SDKBOX IAP on Android


#1

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.


#2

Maybe it is a network issue. Plz make sure here is only one request at the same time.


#3

Thank you for your reply.
May I ask the detail of network issue you said?
I tested in different environment, office and my home network, but I’v gotten same result.


#4

Is the purchase successful?


#5

I updated .jar files, then I can get them.
Thanks!