STPPaymentOptionType
enum STPPaymentOptionType {}
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 use any available payment method to pay.
Declaration
Objective-C
STPPaymentOptionTypeAll = STPPaymentOptionTypeApplePay
Swift
static var all: STPPaymentOptionType { get }