Using code to buy in app products in Android app?

view story

http://stackoverflow.com – I have been working on an app and is live on google Play. This app consist of in app products which uses IAB v3 . In the new update I want that the user may buy the product from our website and get a encrypted code from our website (exclusive for each product) and directly use it in the app to buy the products. I was wondering that if google gives this type of facility ,If no how could I possibly do this. please can anybody help. Thanks (HowTos)