iPad hangs on PassKit's "can make payments" check

Originator:j
Number:rdar://24257585 Date Originated:20-Jan-2016
Status:Duplicate of 23500456 Resolved:
Product:iOS SDK Product Version:9.2.1
Classification: Reproducible:Always
 
Summary:
When attempting to call PKPaymentAuthorizationViewController's canMakePaymentsUsingNetworks method on an iPad running iOS 9, the call hangs forever.

This appears to only affect iPads (iPhones behave correctly).

Steps to Reproduce:
Run the attached project. Key lines are:

let networks = [PKPaymentNetworkVisa, PKPaymentNetworkMasterCard]
let capabilities: PKMerchantCapability = [.Capability3DS, .CapabilityDebit]        PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(networks, capabilities: capabilities)

Expected Results:
Console should print:

> Prints when app launches
> Never prints because app has hung

Actual Results:
Console prints:

> Prints when app launches

Pausing the app in the debugger shows it stuck at PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks. It hangs here forever.

Version:
iOS 9.2.1

Notes:
iPad did not have any payment methods configured.

Configuration:
iPad Air 5th Gen (other iPads also behave in the same manner)

Attachments:
'Apple Pay Hangs.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!