I use the InAppBilling plugin from the author jamesmontemagno version 4.x. (last stable)
Follow the code return error: Cannot convert from 'Plugin.InAppBilling.ItemType' to 'bool'
Original example Method by jamesmontemagno
var connected = await billing.ConnectAsync(ItemType.InAppPurchase);