How to implement shouldAddStorePayment method in StoreKit 2?

Promoting In-App Purchases in StoreKit, but I didn't find replacement in StoreKit 2

func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool { return false }

Answered by DaleOne in 736360022

Hi. Unfortunately promoted in-app purchases are not currently supported with StoreKit 2.

Check this post: https://developer.apple.com/forums/thread/706538?answerId=714432022#714432022

Hello, Did you manage to find a solution?

Accepted Answer

Hi. Unfortunately promoted in-app purchases are not currently supported with StoreKit 2.

Check this post: https://developer.apple.com/forums/thread/706538?answerId=714432022#714432022

How to implement shouldAddStorePayment method in StoreKit 2?
 
 
Q