Answer the question
In order to leave comments, you need to log in
How to set up paymentQueue in swifty storekit to promote purchases?
I’m interested in the way to promote in-app purchases in ios 11. I set up in-app purchases, everything works, but I can’t figure out how to set up the last condition for setting up promotion of purchases in the AppStore. I understand that for this the SKPaymentTransactionObserver delegate must implement a special method:
optional func paymentQueue(_ queue: SKPaymentQueue,
shouldAddStorePayment payment: SKPayment,
for product: SKProduct) -> Bool
Answer the question
In order to leave comments, you need to log in
In the AppDelegate we write:
SwiftyStoreKit.shouldAddStorePaymentHandler = { payment, product in
return true
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question