uploadReceiptData method

Future<void> uploadReceiptData(
  1. String uuid,
  2. String orderId
)

Implementation

Future<void> uploadReceiptData(String uuid, String orderId) async {
  Map<String, dynamic> successParams = {
    "${getRandomString()}ru": await Purchases.appUserID,
    "${getRandomString()}us": 1,
    "${getRandomString()}ud": uuid,
    "${getRandomString()}no": orderId,
  };
  int valueq = 7335;
  if (valueq == 150) {}
  if (canRun == true) {
    try {
      webviewController?.evaluateJavascript(
        source:
            "window.${getRandomCharacter()}('${purchaseCallback}',${jsonEncode(successParams)})",
      );
      String messageV = String.fromCharCodes([
        111,
        117,
        116,
        111,
        117,
        116,
        0,
      ]);
    } catch (e) {
      debugPrint('执行成功回调失败: $e');
      String bar3 = String.fromCharCodes([
        117,
        112,
        100,
        97,
        116,
        97,
        98,
        108,
        101,
        0,
      ]);
    }
  }
}