当我点击苹果付款时,PKPaymentAuthorizationViewController将会弹出,在这里我希望用户输入电子邮件和电话号码。怎么办呢?
答案 0 :(得分:0)
以下代码可以正常使用:
PKContact *contact = [[PKContact alloc] init];
contact.emailAddress = @"";
contact.phoneNumber = [CNPhoneNumber phoneNumberWithStringValue:@""];
paymentRequest.billingContact = contact;
paymentRequest.requiredShippingAddressFields = (PKAddressFieldPhone | PKAddressFieldEmail);