stripe-archive/ApplePayStubs

Not working with Swift

Closed this issue · 2 comments

My apple pay implementation is working well. When I substitute the apple pay controller with STPTestPaymentAuthorizationViewController it doesn't work. I get a view with a cancel button but the rest is empty/see transparent. As far as I can tell, the tableView, buttons, etc. are all nil. I'm using swift and cocoapods.

Bridging header: #import <ApplePayStubs/STPTestPaymentAuthorizationViewController.h>

I think you new an pure swift project.
So, you should new an objective-c files(.h .m) in your project, and then del the pod directory, and pod update.

It worked on mine :)

#15 should resolve this.