Five entitlement reads
currentEntitlement, getPlans, getUsage, getInvoices and getPaymentMethod work on every platform that has a driver, e.g. Payments.currentEntitlement().
-
The same calls on
Payments.billingand as static methods onPayments -
A failed response or a body of the wrong shape throws
BillingException
final BillingEntitlement entitlement = await Payments.currentEntitlement();
if (entitlement.subscribed) {
// Show the plan, then link to where it is managed.
}