Is any example code is available for Inapp Purchase in windows metroapps ?
Check out the Prime31 plugin. I believe it’s currently free and has support for in-app purchases as well as other stuff, along with examples of all their APIs.
They also have equivalent APIs for Windows Phone.