adjustVerifyAppStorePurchase method

Future<VerifyResult?> adjustVerifyAppStorePurchase({
  1. required String transactionId,
  2. required String productId,
})

Implementation

Future<VerifyResult?> adjustVerifyAppStorePurchase({
  required String transactionId,
  required String productId,
}) async {
  debugPrint(
      '[TappSdk.adjustVerifyAppStorePurchase] transactionId=$transactionId productId=$productId');
  if (!Platform.isIOS) return _unsupported('adjustVerifyAppStorePurchase');
  final raw = await _method.invokeMethod<dynamic>(
    'adjustVerifyAppStorePurchase',
    {'transactionId': transactionId, 'productId': productId},
  );
  debugPrint('[TappSdk.adjustVerifyAppStorePurchase] raw=$raw');
  if (raw == null) return null;
  final m = Map<String, dynamic>.from(raw);
  final result = VerifyResult(
    verificationStatus: m['verificationStatus'] as String,
    code: m['code'] as int,
    message: m['message'] as String,
  );
  debugPrint('[TappSdk.adjustVerifyAppStorePurchase] parsed=$result');
  return result;
}