restorePurchases static method

Future<CustomerInfo> restorePurchases()

Restores a user's previous purchases and links their appUserIDs to any user's also using those purchases.

Returns a CustomerInfo object, or throws a PlatformException if there was a problem restoring transactions.

Implementation

static Future<CustomerInfo> restorePurchases() async {
  final result = await _channel.invokeMethod('restorePurchases');
  return CustomerInfo.fromJson(Map<String, dynamic>.from(result));
}