【发布时间】:2015-09-23 00:14:54
【问题描述】:
我正在尝试使用 swift 将 Stripe 集成到 iOS 应用程序中。而且我不断从该行收到这些错误:creditCard.validateCardReturningError(&error) 错误 1: '_' 不能转换为 '() throws ->()' 错误 2: 不能转换为 'BooleanType'
var error: NSError?
if (creditCard.validateCardReturningError(&error)){
var stripeError: NSError!
Stripe.createTokenWithCard(creditCard, completion: { (token, stripeError) -> Void in
if (stripeError != nil){
println("there is error");
}
【问题讨论】:
标签: ios swift error-handling stripe-payments swift2