     purchases.setCreative("")
     purchases.collectDeviceIdentifiers()
 }
+
+private func checkAsyncMethods(purchases: Purchases) async {
+    let pack: Package! = nil
+
+    do {
+        let _: (CustomerInfo, Bool) = try await purchases.logIn("")
+        let _: [String: IntroEligibility] = await purchases.checkTrialOrIntroductoryPriceEligibility([])
+        let _: CustomerInfo = try await purchases.logOut()
+        let _: Offerings = try await purchases.offerings()
+        let _: SKPaymentDiscount = try await purchases.paymentDiscount(forProductDiscount: SKProductDiscount(),
+                                                                       product: SKProduct())
+        let _: [SKProduct] = await purchases.products([])
+        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(package: pack)
+        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(package: pack,
+                                                                                         discount: SKPaymentDiscount())
+        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(product: SKProduct())
+        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(product: SKProduct(),
+                                                                                         discount: SKPaymentDiscount())
+        let _: CustomerInfo = try await purchases.customerInfo()
+        let _: CustomerInfo = try await purchases.restoreTransactions()
+        let _: CustomerInfo = try await purchases.syncPurchases()
+
+        try await purchases.showManageSubscriptions()
+        let _: RefundRequestStatus = try await purchases.beginRefundRequest(for: "")
+    } catch {}
+}

    purchases.purchase(product: skp, discount: paymentDiscount) { _, _, _, _  in }
    purchases.purchase(package: pack, discount: paymentDiscount) { _, _, _, _  in }
    purchases.invalidateCustomerInfoCache()

    if #available(iOS 13.0, tvOS 13.0, macOS 10.15, watchOS 6.0, *) {
        Task.init {
            let (_, _, _): (SKPaymentTransaction, CustomerInfo, Bool) =
            try await purchases.purchase(product: skp, discount: paymentDiscount)
            let (_, _, _): (SKPaymentTransaction, CustomerInfo, Bool) =
            try await purchases.purchase(package: pack, discount: paymentDiscount)
            let _: [String: IntroEligibility] = await purchases.checkTrialOrIntroductoryPriceEligibility([String]())
            let _: SKPaymentDiscount = try await purchases.paymentDiscount(forProductDiscount: productDiscount,
                                                                           product: skp)
        }
    }

#if os(iOS) || targetEnvironment(macCatalyst)
    let beginRefundRequestCompletion: (RefundRequestStatus, Error?) -> Void = { _, _ in }

    let loginComplete: (CustomerInfo?, Bool, Error?) -> Void = { _, _, _ in }
    purchases.logIn("", completion: loginComplete)
    purchases.logIn("") { _, _, _ in }
}

private func checkPurchasesSupportAPI(purchases: Purchases) {
    #if os(iOS)
    purchases.showManageSubscriptions { _ in }
    purchases.beginRefundRequest(for: "") { _, _ in }
    #endif
}

