upgradeDownGrade
fun upgradeDownGrade(context: Context, onSuccess: (Boolean, String) -> Unit = { _, _ -> }, onFailure: (PurchasesError, Boolean) -> Unit = { _, _ -> })
If a person is already a subscriber, you can upgrade the subscription status from Annual to Monthly, or from Monthly to Annual. However, cancellations can only be made through the Store.
Parameters
context
onSuccess
Unit if the answer is correct, a boolean with the subscription status and the id of the corresponding product will be returned in the unit.
onFailure
Unit in case the answer is wrong, a PurchaseError with information about the problem and a boolean with the subscription status will be returned in the unit.