Tag: 苹果派

Apple Pay沙盒testing仪无法loginiOS 10设备

我无法login到我的新iPhone 6s(iOS 10.0.1)与此沙箱帐户testing苹果的方式。 虽然能够login到networkingicloud,iTunes和我的旧iPhone 6+(iOS 10 beta 5)testing。 每次尝试login到iPhone 6s(iOS 10.0.1)我得到这个错误信息。 iTunes帐户创build不允许 这个苹果ID目前不能与iTunes Store一起使用。 请再试一次。 帮助我做什么,是苹果方面的这个错误

加载Apple Pay送货地址No Street

我正在尝试从Apple提供的ABRecordRef提取送货地址。 我有以下但我的街道总是返回nil : ABMultiValueRef addresses = ABRecordCopyValue(abRecordRef, kABPersonAddressProperty); for (CFIndex index = 0; index < ABMultiValueGetCount(addresses); index++) { CFDictionaryRef properties = ABMultiValueCopyValueAtIndex(addresses, index); NSString *street = [(__bridge NSString *)(CFDictionaryGetValue(properties, kABPersonAddressStreetKey)) copy]; NSLog(@"street: %@", street); } 我究竟做错了什么? 即使在用以下方式进行debugging时: – (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectShippingAddress:(ABRecordRef)customShippingAddress completion:(void (^)(PKPaymentAuthorizationStatus status, NSArray *methods, NSArray *items))completion { NSLog(@"%@", ABRecordCopyValue(customShippingAddress, kABPersonAddressProperty); completion(PKPaymentAuthorizationStatusSuccess, …, …); […]

条纹和Apple Pay无法在iOS应用程序中工作

我感到非常沮丧,因为我花了很长时间解决这个问题。 我正在使用下面的代码创build一个请求: PKPaymentRequest *request = [Stripe paymentRequestWithMerchantIdentifier:merchantId]; // Configure your request here. NSString *label = @"Product Description"; NSDecimalNumber *amount = [NSDecimalNumber decimalNumberWithString:[productpriceDouble stringByReplacingOccurrencesOfString:@"$" withString:@""]]; request.paymentSummaryItems = @[ [PKPaymentSummaryItem summaryItemWithLabel:label amount:amount] ]; request.merchantIdentifier = @"merchantId"; request.countryCode = @"US"; request.currencyCode = @"USD"; request.merchantCapabilities = PKMerchantCapability3DS; PKPaymentAuthorizationViewController *paymentController; paymentController = [[PKPaymentAuthorizationViewController alloc] initWithPaymentRequest:request]; paymentController.delegate = self; [self presentViewController:paymentController […]