Apple Pay doesn't appear on iOS10 if requiredShippingAddressFields contains PKAddressFieldName

Originator:bg
Number:rdar://28481039 Date Originated:26-Sep-2016 04:35 PM
Status:Open Resolved:
Product:iOS SDK Product Version:10.0.1
Classification: Reproducible:Always
 
Summary:
On iOS 10, if you set a `PKPaymentRequest`'s `requiredShippingAddressFields` to anything containing `PKAddressFieldName`, and include a name in the request's `shippingContact`, the Apple Pay sheet doesn't appear. Instead, I see this in the console:

> Failed to present in-app payment interface: <private>
> Connection to remote alert view service failed

On iOS 9, the Apple Pay sheet does appear, but the contact's name won't be filled in.

Steps to Reproduce:
1. Run the attached example app on an iOS 10 simulator.
2. Tap Buy -> the Apple Pay sheet doesn't appear
3. Uncomment Line 39, setting `requiredShippingAddressFields` to `PKAddressFieldEmail`
4. Tap Buy -> the Apple Pay sheet does appear

Expected Results:
The Apple Pay sheet should appear, and the contact's name should be populated with the information in the `PKPaymentRequest`'s `shippingContact`.

Actual Results:
On iOS 10, no Apple Pay sheet appears. On iOS 9, the Apple Pay sheet does appear, but the contact name isn't filled in.

Version:
iOS 10.0.1

Notes:


Configuration:
iOS 10 simulator, iOS 9.3 simulator, iPhone 6s running iOS 10.0.1

Attachments:
'apple-pay-shipping.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!