blackhornet Hi, thanks for responding. The game contains only two purchasable items even the levels increases. the IAPs run in this way.
On start of layout-> Request store listing
-> Restore purchases
On store listing available
On touch of product 1-> purchase product1
On touch of product 2-> purchase product2
Later I added few more lines
On store listing available
If product1 not purchased-> On touch of product 1-> purchase product1
If product1 is purchased-> On touch of product 1-> consume product1
If product2 not purchased-> On touch of product 2-> purchase product2
If product1 is purchased-> On touch of product 2-> consume product2