Apple Pay钱包屏幕(PKAddPaymentPassViewController)无法打开

时间:2019-07-01 12:49:00

标签: ios objective-c wallet passkit

PKAddPaymentPassRequestConfiguration *request =[[PKAddPaymentPassRequestConfiguration alloc] initWithEncryptionScheme:PKEncryptionSchemeRSA_V2];

request.cardholderName  = @"***";

request.primaryAccountSuffix = @"****";

request.localizedDescription = @"This will add the card to Apple Pay";

request.primaryAccountIdentifier = @"Primary";

request.paymentNetwork = @"Primary";

PKAddPaymentPassViewController *addPaymentPassViewController = [[PKAddPaymentPassViewController alloc] initWithRequestConfiguration:request delegate:self];

每次addPaymentPassViewController为零 并获得以下消息 缺少权利:com.apple.developer.payment-pass-provisioning

我在info.plist文件中将com.apple.developer.payment-pass-provisioning添加为YES。

0 个答案:

没有答案