SCPSimulatedCardType
Objective-C
enum SCPSimulatedCardType : NSUInteger {}
Swift
enum SimulatedCardType : UInt, @unchecked Sendable
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
-
Visa debit supporting both international and US Common Debit applications
Declaration
Objective-C
SCPSimulatedCardTypeVisaUsCommonDebit
Swift
case visaUsCommonDebit = 2
-
Mastercard
Declaration
Objective-C
SCPSimulatedCardTypeMastercard
Swift
case mastercard = 3
-
Mastercard (debit)
Declaration
Objective-C
SCPSimulatedCardTypeMasterDebit
Swift
case masterDebit = 4
-
Mastercard (prepaid)
Declaration
Objective-C
SCPSimulatedCardTypeMastercardPrepaid
Swift
case mastercardPrepaid = 5
-
American Express
Declaration
Objective-C
SCPSimulatedCardTypeAmex
Swift
case amex = 6
-
American Express
Declaration
Objective-C
SCPSimulatedCardTypeAmex2
Swift
case amex2 = 7
-
Discover
Declaration
Objective-C
SCPSimulatedCardTypeDiscover
Swift
case discover = 8
-
Discover
Declaration
Objective-C
SCPSimulatedCardTypeDiscover2
Swift
case discover2 = 9
-
Diners Club
Declaration
Objective-C
SCPSimulatedCardTypeDiners
Swift
case diners = 10
-
Diners Club (14 digit card)
Declaration
Objective-C
SCPSimulatedCardTypeDiners14Digit
Swift
case diners14Digit = 11
-
JCB
Declaration
Objective-C
SCPSimulatedCardTypeJcb
Swift
case jcb = 12
-
UnionPay
Declaration
Objective-C
SCPSimulatedCardTypeUnionPay
Swift
case unionPay = 13
-
Interac
Declaration
Objective-C
SCPSimulatedCardTypeInterac
Swift
case interac = 14
-
Eftpos Australia
Declaration
Objective-C
SCPSimulatedCardTypeEftposAuDebit
Swift
case eftposAuDebit = 15
-
Eftpos Australia/Visa
Declaration
Objective-C
SCPSimulatedCardTypeEftposAuVisaDebit
Swift
case eftposAuVisaDebit = 16
-
Eftpos Australia/Mastercard
Declaration
Objective-C
SCPSimulatedCardTypeEftposAuDebitMastercard
Swift
case eftposAuDebitMastercard = 17
-
Charge is declined with a card_declined code.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclined
Swift
case chargeDeclined = 18
-
Charge is declined with a card_declined code. The decline_code attribute is insufficient_funds.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclinedInsufficientFunds
Swift
case chargeDeclinedInsufficientFunds = 19
-
Charge is declined with a card_declined code. The decline_code attribute is lost_card.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclinedLostCard
Swift
case chargeDeclinedLostCard = 20
-
Charge is declined with a card_declined code. The decline_code attribute is stolen_card.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclinedStolenCard
Swift
case chargeDeclinedStolenCard = 21
-
Charge is declined with an expired_card code.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclinedExpiredCard
Swift
case chargeDeclinedExpiredCard = 22
-
Charge is declined with a processing_error code.
Declaration
Objective-C
SCPSimulatedCardTypeChargeDeclinedProcessingError
Swift
case chargeDeclinedProcessingError = 23
-
Refund is declined with a refund_fail error.
Declaration
Objective-C
SCPSimulatedCardTypeRefundFailed
Swift
case refundFailed = 24
-
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 = 25
-
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 = 26
-
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 = 27
-
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 = 28