verify method

  1. @override
Future<String?> verify(
  1. PendingPurchase purchase
)
override

Verifies purchase: the entitlement it grants, or null.

Implementation

@override
Future<String?> verify(PendingPurchase purchase) async {
  final data = await _call('verifyPurchase', {
    'projectId': projectId,
    'productId': purchase.productId,
    'source': purchase.source,
    'serverVerificationData': purchase.serverVerificationData,
  });
  return data['entitlementId'] as String?;
}