#AndroidSword-iOS-SDK
1 messages · Page 1 of 1 (latest)
Value of type 'PaymentIntentParameters' has no member 'setupFutureUsage'
This is the exact error
Thanks. Are you using SwiftUI or UIKit?
UIKit
Can you provide the snippet of code where you are hitting this?
var params = PaymentIntentParameters(amount: args["amount"] as! UInt, currency: args["currency"] as! String)
if (args["saveCard"] as! Bool) {
params.setupFutureUsage = "off_session"
}
Sure
What version of our iOS SDK are you using?
Okay let's back up a sec. Are you using Terminal and the iOS Terminal SDK?
I am using Terminal iOS SDK
This is what I followed
for iOS
Thanks for clarifying! Okay it looks like you need to upgrade to 2.1: https://github.com/stripe/stripe-terminal-ios/blob/master/CHANGELOG.md#210-2021-08-23
As that added setupFUtureUsage