STPPaymentOptionType
Objective-C
enum STPPaymentOptionType {}
Swift
struct STPPaymentOptionType : OptionSet
This represents all of the payment methods available to your user when
configuring an STPPaymentContext
. This is in addition to card payments, which
are always enabled.
-
Don’t allow any payment methods except for cards.
Declaration
Objective-C
STPPaymentOptionTypeNone = 0
-
The user is allowed to pay with Apple Pay if it’s configured and available on their device.
Declaration
Objective-C
STPPaymentOptionTypeApplePay = 1 << 0
Swift
static var applePay: STPPaymentOptionType { get }
-
The user is allowed to pay with FPX.
Declaration
Objective-C
STPPaymentOptionTypeFPX = 1 << 1
Swift
static var FPX: STPPaymentOptionType { get }
-
Deprecated
use STPPaymentOptionTypeDefault instead
The user is allowed to use the default payment methods to pay.
Declaration
Objective-C
STPPaymentOptionTypeAll = STPPaymentOptionTypeApplePay
Swift
static var all: STPPaymentOptionType { get }
-
The user is allowed to use the default payment methods to pay.
Declaration
Objective-C
STPPaymentOptionTypeDefault = STPPaymentOptionTypeApplePay
Swift
static var `default`: STPPaymentOptionType { get }