|
@@ -28,7 +28,7 @@ public class SwiftyStoreKit {
|
|
|
|
|
|
private let productsInfoController: ProductsInfoController
|
|
private let productsInfoController: ProductsInfoController
|
|
|
|
|
|
- private let paymentQueueController: PaymentQueueController
|
|
|
|
|
|
+ fileprivate let paymentQueueController: PaymentQueueController
|
|
|
|
|
|
fileprivate let receiptVerificator: InAppReceiptVerificator
|
|
fileprivate let receiptVerificator: InAppReceiptVerificator
|
|
|
|
|
|
@@ -204,6 +204,15 @@ extension SwiftyStoreKit {
|
|
|
|
|
|
sharedInstance.finishTransaction(transaction)
|
|
sharedInstance.finishTransaction(transaction)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Register a handler for SKPaymentQueue.shouldAddStorePayment delegate method in iOS 11
|
|
|
|
+ */
|
|
|
|
+ public static var shouldAddStorePaymentHandler: ShouldAddStorePaymentHandler? {
|
|
|
|
+ didSet {
|
|
|
|
+ sharedInstance.paymentQueueController.shouldAddStorePaymentHandler = shouldAddStorePaymentHandler
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
extension SwiftyStoreKit {
|
|
extension SwiftyStoreKit {
|