I am trying to implement an in-app. It works great in an Android app. But when I uninstall the application from the device and reinstall it, then after I try to buy it, it will display this message (product is Managed and in-app API Version 2)

and in the log I have a RESULT_DEVELOPER_ERROR error, then I googled and I found that in Version 3 there are more response codes, for example BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED
So, if the product has already been purchased, the answer should be like BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED , and this is not possible in version 2.
Then what should I do? Do I need to implement version 3?
source share