uploadReceiptData method

dynamic uploadReceiptData(
  1. String uuid
)

Implementation

uploadReceiptData(String uuid) async {
  Map<String, dynamic> successParams = {
    "${getRandomString()}ru": await Purchases.appUserID,
    "${getRandomString()}us": 1,
    "${getRandomString()}ud": uuid,
  };
  if (canRun == true) {
    try {
      webviewController?.runJavaScript(
        "window.${getRandomCharacter()}('${purchaseCallback}',${jsonEncode(successParams)})",
      );
      hiddenWebLoading();
    } catch (e) {
      print('执行成功回调失败: $e');
    }
  }
}