iOS9: InAppPurchase: wrong error type returned when user cancels purchase process

Number:rdar://22576363 Date Originated:2015/9/5
Status:open Resolved:
Product:iOS Product Version:9.0
Classification:Bug Reproducible:Yes
Under iOS9: When a user presses the cancel button when he is asked to login with his AppleID during the InAppPurchase process the wrong error type is returned in paymentQueue:updatedTransactions:

Instead of the expected SKErrorPaymentCancelled we get SKErrorUnknown

Steps to Reproduce:
1. Add a SKPayment to the SKPaymentQueue
2. Wait for the AlertView prompting you to login with your AppleID
3. Press cancel

Expected Results:
paymentQueue:updatedTransactions: is being called with transaction's errorType = SKErrorPaymentCancelled

Actual Results:
Under iOS9 errorType SKErrorUnknown is returned


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!