SCPSimulatedCardType

Objective-C

enum SCPSimulatedCardType : NSUInteger {}

Swift

enum SimulatedCardType : UInt

Enum used to simulate various types of cards and error cases.

  • Visa

    Declaration

    Objective-C

    SCPSimulatedCardTypeVisa = 0

    Swift

    case visa = 0
  • Visa (debit)

    Declaration

    Objective-C

    SCPSimulatedCardTypeVisaDebit

    Swift

    case visaDebit = 1
  • Mastercard

    Declaration

    Objective-C

    SCPSimulatedCardTypeMastercard

    Swift

    case mastercard = 2
  • Mastercard (debit)

    Declaration

    Objective-C

    SCPSimulatedCardTypeMasterDebit

    Swift

    case masterDebit = 3
  • Mastercard (prepaid)

    Declaration

    Objective-C

    SCPSimulatedCardTypeMastercardPrepaid

    Swift

    case mastercardPrepaid = 4
  • American Express

    Declaration

    Objective-C

    SCPSimulatedCardTypeAmex

    Swift

    case amex = 5
  • American Express

    Declaration

    Objective-C

    SCPSimulatedCardTypeAmex2

    Swift

    case amex2 = 6
  • Discover

    Declaration

    Objective-C

    SCPSimulatedCardTypeDiscover

    Swift

    case discover = 7
  • Discover

    Declaration

    Objective-C

    SCPSimulatedCardTypeDiscover2

    Swift

    case discover2 = 8
  • Diners Club

    Declaration

    Objective-C

    SCPSimulatedCardTypeDiners

    Swift

    case diners = 9
  • Diners Club (14 digit card)

    Declaration

    Objective-C

    SCPSimulatedCardTypeDiners14Digit

    Swift

    case diners14Digit = 10
  • JCB

    Declaration

    Objective-C

    SCPSimulatedCardTypeJcb

    Swift

    case jcb = 11
  • UnionPay

    Declaration

    Objective-C

    SCPSimulatedCardTypeUnionPay

    Swift

    case unionPay = 12
  • Interac

    Declaration

    Objective-C

    SCPSimulatedCardTypeInterac

    Swift

    case interac = 13
  • Charge is declined with a card_declined code.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclined

    Swift

    case chargeDeclined = 14
  • Charge is declined with a card_declined code. The decline_code attribute is insufficient_funds.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclinedInsufficientFunds

    Swift

    case chargeDeclinedInsufficientFunds = 15
  • Charge is declined with a card_declined code. The decline_code attribute is lost_card.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclinedLostCard

    Swift

    case chargeDeclinedLostCard = 16
  • Charge is declined with a card_declined code. The decline_code attribute is stolen_card.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclinedStolenCard

    Swift

    case chargeDeclinedStolenCard = 17
  • Charge is declined with an expired_card code.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclinedExpiredCard

    Swift

    case chargeDeclinedExpiredCard = 18
  • Charge is declined with a processing_error code.

    Declaration

    Objective-C

    SCPSimulatedCardTypeChargeDeclinedProcessingError

    Swift

    case chargeDeclinedProcessingError = 19
  • Refund is declined with a refund_fail error.

    Declaration

    Objective-C

    SCPSimulatedCardTypeRefundFailed

    Swift

    case refundFailed = 20
  • Payment attaches Online Pin to the transaction. cardholder_verification_method will be set to online_pin in the resulting paymentIntent WisePad3 only

    Declaration

    Objective-C

    SCPSimulatedCardTypeOnlinePinCvm

    Swift

    case onlinePinCvm = 21
  • This flow simulates an Online Pin scenario with SCA compliance. Payment is retried and user is prompted to input their pin. Next an online pin being entered is simulated.

    cardholder_verification_method will be set to online_pin in the resulting paymentIntent.
    WisePad3 only
    

    Declaration

    Objective-C

    SCPSimulatedCardTypeOnlinePinScaRetry

    Swift

    case onlinePinScaRetry = 22
  • Payment attaches Offline Pin to the transaction. cardholder_verification_method will be set to offline_pin in the resulting paymentIntent WisePad3 only

    Declaration

    Objective-C

    SCPSimulatedCardTypeOfflinePinCvm

    Swift

    case offlinePinCvm = 23
  • This flow simulates an Offline Pin scenario with SCA compliance. Payment is retried and user is prompted to insert their card. Next a contact retry and an offline pin being entered are simulated.

    cardholder_verification_method will be set to offline_pin in the resulting paymentIntent.
    WisePad3 only
    

    Declaration

    Objective-C

    SCPSimulatedCardTypeOfflinePinScaRetry

    Swift

    case offlinePinScaRetry = 24