I'm sorry but it is impossible (for me at least) to say whether it will work or not without understanding the complete solution.
Hi. i just saw that the InAppBilling library uses the same type of ServiceConnection, is it possible to see that source and modify it?