AdaptySDK-Flutter icon indicating copy to clipboard operation
AdaptySDK-Flutter copied to clipboard

makePurchase didn't return anything always generating purchase sheet again and again

Open akahamzidollar opened this issue 2 months ago • 1 comments

I'm trying to call makPurchase function but it always generating sheet Here is Code:

Future<AdaptyProfile?> callMakePurchase(AdaptyPaywallProduct product) async {
    try {
      final result = await adapty.makePurchase(product: product);
      print(result);
      Get.find<AuthController>().refreshUser();
      return result;
    } on AdaptyError catch (adaptyError) {
      onAdaptyErrorOccurred?.call(adaptyError);
    } catch (e) {
      onUnknownErrorOccurred?.call(e);
    }
    return null;
  }

Screenshot:

akahamzidollar avatar Apr 29 '24 15:04 akahamzidollar