PCIPTokenization

constructor(merchantId: String)

Use this constructor to allow the user to enter the card data to be tokenized. After this class is initialized, you should define the options properties.

Parameters

merchantId

Your merchantId.


constructor(merchantId: String, paymentMethodTypes: Set<PaymentMethodType>)

Use this constructor to define which payment method types are allowed on the card tokenization.

Parameters

merchantId

Your merchantId.

paymentMethodTypes

The allowed credit or debit card types.


constructor(merchantId: String, cvvOnlyCard: CvvOnlyCard)

Use this constructor to tokenize the CVV of an already tokenized card. After this class is initialized, you should define its options properties.

Parameters

merchantId

Your merchantId.

cvvOnlyCard

Previously tokenized card for which the CVV should be entered/tokenized.


constructor(merchantId: String, card: Card)

Use this constructor if you use your own UI and already have a Card instance with the card data to be tokenized. After this class is initialized, you should define its options properties.

Parameters

merchantId

Your merchantId.

card

Card object to tokenize.