I'm trying to do a server-side verification of Huawei subscription, but currently I'm stuck at verification part
- Im successfully obtain access_token from this url
Do a base64encode UTF-8 format of string 'APPAT:my_access_token'
Then I'm trying to get purchaseDetails from https://subscr-drcn.iap.hicloud.com/sub/applications/v2/purchases/get. Im sending subscriptionId and purchaseToken in json format and base64encoded access_token in Authorization ('Basic my_access_token') header and Content-Type=application/json;charset=UTF-8
Every time I get this response:
{ "responseCode": "6", "responseMessage": "Token is expired or invalid" }
Searching for this message didn't help. What can be the problem with it? Is it invalid purchaseToken or invalid accessToken?
Please help me with this, thanks!