Closed huguesbr closed 10 years ago
The example is designed to support iOS7 - sorry about that. I've fixed this in 777cda06f8e0a02595eebb7fa2efe22cbf77d723.
hey @jflinter cool, I haven't read the full commit but it look like you're still using PKShippingMethod directly, which is iOS8 only... https://developer.apple.com/library/IOs/documentation/PassKit/Reference/PKShippingMethod_Ref/index.html
Yeah, but I moved it back inside the canSubmitPaymentRequest:
block, so it'll never get actually executed on a pre-iOS8 device.
oh yeah, got it
I'm seeing this crash too using your latest SDK on a Swift app. Our deployment target is iOS 7 and we are seeing the crash when running iOS 7 (not 8). The crash (EXC_BAD_ACCESS) happens at: if test != nil or whenever I next access test
let test = Stripe.paymentRequestWithMerchantIdentifier(Constants.ApplePayMerchantID)
if test != nil {
println("not nil")
}
Is this example suppose to support iOS7?
It crash on https://github.com/stripe/stripe-ios/blob/master/Example/StripeExample/ViewController.m#L55 as it try to do
and
shippingMethod
is nil becausePKShippingMethod
is iOS8 only