Help regarding Inapp Billing/Purchase Blocks

I want to create app using inapp billing component.

Any one can help me.
How to make it?

Also check blocks are correct or not in image?

You may use latest in-app-billing library. See here,