2019-03-21 21:03:16 -06:00
|
|
|
// TODO:
|
|
|
|
// We can add an option to execute the charge API-side, in which case
|
|
|
|
// the developer would also need to provide their 'charge' endpoint,
|
|
|
|
// meaning that the success/fail return value becomes meaningful.
|
|
|
|
// The extraHTTPHeaders now allows us to do that, to be done later..
|
|
|
|
|
|
|
|
public class StripePaymentsPluginConfig {
|
|
|
|
public var publishableKey: String = ""
|
|
|
|
public var ephemeralKeyUrl: String = ""
|
|
|
|
public var appleMerchantId: String = ""
|
|
|
|
public var companyName: String = ""
|
2019-03-24 22:35:02 -06:00
|
|
|
public var maximumKeyRetries: Int = 0
|
2019-03-27 06:11:33 -06:00
|
|
|
public var paymentOptionsFooter: String = ""
|
|
|
|
public var addCardFooter: String = ""
|
2019-03-24 22:35:02 -06:00
|
|
|
public var extraHTTPHeaders: [String:String] = [:]
|
2019-03-21 21:03:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
let PluginConfig = StripePaymentsPluginConfig()
|