SCPPaymentOption

Objective-C


@interface SCPPaymentOption : NSObject <NSCopying>

Swift

class PaymentOption : NSObject, NSCopying

Represents a payment option available during payment collection.

  • The type of this payment option.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPPaymentOptionType type;

    Swift

    var type: PaymentOptionType { get }
  • For non-card payment options, the specific payment method type. Only set when type is SCPPaymentOptionTypeNonCard.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPPaymentMethodType paymentMethodType;

    Swift

    var paymentMethodType: PaymentMethodType { get }
  • Creates a card payment option.

    Declaration

    Objective-C

    + (nonnull instancetype)cardPaymentOption;

    Swift

    class func card() -> Self
  • Creates a non-card payment option with the specified payment method type.

    Declaration

    Objective-C

    + (nonnull instancetype)nonCardPaymentOptionWithType:
        (SCPPaymentMethodType)paymentMethodType;

    Swift

    class func nonCardPaymentOption(with paymentMethodType: PaymentMethodType) -> Self

    Parameters

    paymentMethodType

    The specific payment method type (must be a non-card type)

  • Unavailable

    You cannot directly instantiate SCPPaymentOption. Use cardPaymentOption or nonCardPaymentOptionWithType: instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate SCPPaymentOption. Use cardPaymentOption or nonCardPaymentOptionWithType: instead.

    Declaration

    Objective-C

    + (nonnull instancetype)new;