How to upgrade/downgrade subscriptions in Android InAppBilling?

前端 未结 5 1676
南旧
南旧 2020-12-30 07:05

I spent a week looking for solution to upgrade/downgrade subscriptions on Android InAppBilling.

There\'s a reference page about this function: http

5条回答
  •  天涯浪人
    2020-12-30 07:22

    at first thanks for aidl file.

    But for me it is not working. I always get an error code 5:

    Invalid arguments provided to the API. This error can also indicate that the application was not correctly signed or properly set up for In-app Billing in Google Play, or does not have the necessary permissions in its manifest

    I don't think that the permissions are wrong or it is not correctly signed as all other payment requests work.

    This is my code:

    List subs = new ArrayList<>();
    subs.add(current_sub);
    buyIntentBundle = mService.getBuyIntentToReplaceSkus(3, "package", subs,
           key, "subs", getResources().getString(R.string.developer_payload));
    

    How do you execute an upgrade request or do you see any error in my request?

    Thanks Solidus

提交回复
热议问题