purchase

fun purchase(type: Payment.ProductsType, onSuccess: (Boolean, String) -> Unit = { _, _ -> }, onFailure: (PurchasesError, Boolean) -> Unit = { _, _ -> })

Purchases the monthly or annual package currently cached in billingInfo.