I am attempting to add Apple Pay to a Swift app using Stripe. I am following Stripe's guide. I've created a demo repo to demonstrate the error found below.
I have added the Stripe library, linked the necessary Apple libraries, added an Objective-C bridging header, added a Stripe Publishable Key, enabled the Stripe Enable ApplePay macro, and enabled the ApplePay entitlement.
The issue arises when I attempt to create an actual payment request:
var request: PKPaymentRequest = Stripe.paymentRequestWithMerchantIdentifier("merchant.fm.kenneth.donate")
My repository explains this in detail.
When I build the app, it results in the following error:
2014-11-09 13:59:33.576 stripeTest2[22128:904179]
+[Stripe paymentRequestWithMerchantIdentifier:]:
unrecognized selector sent to class 0x10910a210
2014-11-09 13:59:33.579 stripeTest2[22128:904179] ***
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '+[Stripe paymentRequestWithMerchantIdentifier:]:
unrecognized selector sent to class 0x10910a210'
I assume there must be an issue with the bridge into the Objective-C code in the Stripe library. Any help would be greatly appreciated.