How to implement in app purchase in android?

I’ve read this but I don’t know how to continue.

In above blog post, I have to debug using a real device. In this code

if((window.device && device.platform == “Android”) && typeof inappbilling !== “undefined”) {
inappbilling.init(function(resultInit) {
console.log(“IAB Initialized”);
function(errorInit) {
console.log("ERROR -> " + errorInit);
{showLog: true},
[“productId1”, “productId2”, “productId3”]);
how can I see the console.log in my device?

Check this for device logs: