Contents

paymentQueueShouldShowPriceConsent(_:)

Asks the delegate whether to immediately display a price consent sheet.

Declaration

optional func paymentQueueShouldShowPriceConsent(_ paymentQueue: SKPaymentQueue) -> Bool

Mentioned in

Discussion

This method applies only to auto-renewable subscription price increases that require customer consent.

The default return value for this optional method is true. By default, the system displays the price consent sheet when you increase the subscription price in App Store Connect and the subscriber hasn’t yet taken action.

The system calls your delegate’s method, if appropriate, when you add the first observer to SKPaymentQueue, and any time the app comes to foreground.

If you return false, the system won’t show the price consent sheet. You can choose to display it later by calling showPriceConsentIfNeeded(). You may want to delay showing the sheet if it would interrupt your user’s interaction in your app.

In Mac apps built with Mac Catalyst, the system doesn’t show the price consent sheet regardless of the return value.

See Also

Related Documentation