How to create android IAP plugin

I want to implement in-app purchasing for a specific android market which is something like “Play Store”. To do this I need to add couple of java files and libraries and run their methods from c++ and I do not know how to deal with. Please help me solve the problem.
Thanks in advance