S
S
Stanislav Korolevskiy2017-09-19 21:47:27
Swift
Stanislav Korolevskiy, 2017-09-19 21:47:27

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

but how to do it right? I don’t even know how you can check the correctness of your solution without releasing a new version of the application. All purchases set up strictly according to the instructions: https://github.com/bizz84/SwiftyStoreKit

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Korolevskiy, 2017-09-20
@korolevsky_s

In the AppDelegate we write:

SwiftyStoreKit.shouldAddStorePaymentHandler = { payment, product in
            return true
        }

N
Nextman, 2017-09-25
@bitsmans

But how do you check without a release?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question