                   package: Package?,
                   promotionalOffer: PromotionalOffer,
                   completion: @escaping PurchaseCompletedBlock) {
+        Self.logPurchase(product: product, package: package)
+
         if let sk1Product = product.sk1Product {
             purchase(sk1Product: sk1Product,
                      promotionalOffer: promotionalOffer,


}

private extension Error {

    var isCancelledError: Bool {

        preventPurchasePopupCallFromTriggeringCacheRefresh(appUserID: appUserID)

        if let presentedOfferingIdentifier = package?.offeringIdentifier {
            lock.lock()
            presentedOfferingIDsByProductID[productIdentifier] = presentedOfferingIdentifier
            lock.unlock()

        }

        productsManager.cacheProduct(sk1Product)
