How to get expiry date for Subscription with client side in Android?

前端 未结 2 669
南方客
南方客 2021-02-09 07:08

We are implementing the subscription using in-app purchase in android, We are getting the purchase timestamp like the below format

\'{
   \"orderId\":\"GPA.1234         


        
2条回答
  •  独厮守ぢ
    2021-02-09 07:42

    I tried with this API "https://www.googleapis.com/androidpublisher/v2/applications/" + AppController.getInstance().getPackageName() + "/purchases/subscriptions/" + mSubscriptionId + "/" + "tokens/" + mPurchaseToken;

    with proper valid data but I found this error :

    **{
        "error": {
            "errors": [
                {
                    "domain": "androidpublisher",
                    "reason": "permissionDenied",
                    "message": "The current user has insufficient permissions to perform the requested operation."
                }
            ],
            "code": 401,
            "message": "The current user has insufficient permissions to perform the requested operation."
        }
    }**
    

    Please tell me if any solutions . I follow all steps and get all done with play console and google cloud console account.

提交回复
热议问题