I am getting very frustrated as I have spent long hours on a solution to this problem. I am creating a request using the code below:
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 animated:YES completion:nil];
When the code runs, it starts off fine as the Apple Pay view pops up with the finger print, however, when the finger print is confirmed, it spirals around for a bit and then pops up with an alert and says:
'Apple Pay is Not Available in "AppName"'
Check the settings for this app and make sure it was designed to use Apple Pay.
Any thoughts would be greatly appreciated.