19.1.0 • Published 3 months ago

@softheon/tokenizer v19.1.0

Weekly downloads
207
License
-
Repository
-
Last release
3 months ago

Tokenizer

This library provides a UI component that tokenizes credit cards and checking accounts.

Set Up

To start using the tokenizer, import the TokenizerModule and embed the <sof-tokenizer></sof-tokenizer> element. Please provide the desired configurations in the format described below. The tokenizer will emit a TokenizerResponse response that determines the outcome of attempting to tokenize a payment method and more details about that can be seen below.

Verbiage

The UI component comes with default verbiage that can be overwritten by the consuming application on a pick and choose basis. The tokenizer will prioritize any verbiage coming from the parent TranslateModule. If there is no related key in the parent TranslateModule or that module is not imported, the tokenizer will use the internal default verbiage.

Configurations

Input

Input NameDescription
tokenizerConfigs: TokenizerConfigConfigurations for the tokenizer component

TokenizerConfig

NameDescription
authToken: stringThe authorization token
paymentApiBaseUrl: stringThe base URL for the Payment API
id: stringID for the component
paymentTypeOptions: PaymentTypeSelection[]Payment types to show (see enum below)
languagePath: stringPath to language in verbiage file
referenceId: stringThe reference id to be used for tokenization

Functionality

Output

NameDescription
tokenCreateOutput: TokenizerResponseEmitter that returns the result of tokenization
cancelOutput: voidEmitter that triggers on the click of the cancel button

TokenizerResponse

NameDescription
status: TokenizerResponseStatusIndicates if tokenization was successful
token: stringThe generated token, if applicable
paymentType: PaymentTypeSelectionThe payment type that was selected
accountHolderName: stringThe account holder name
billingAddress: PaymentAddressThe billing address
paymentName: stringThe name of the payment method
lastDigits: stringThe last few digits of the payment account
email: stringEmail populated in tokenizer form
isDefault: booleanDetermines if chosen as default payment method

PaymentTypeSelection

The payment type selection is an enumeration which contains the following options:

  • CheckingOrSavings
  • CheckingAccount
  • SavingsAccount
  • CardPayment
  • DebitCardPayment
  • CreditCardPayment
  • NotChosen
17.3.0

7 months ago

17.5.0

6 months ago

17.1.0

8 months ago

19.1.0

3 months ago

17.2.0

7 months ago

17.4.0

6 months ago

17.0.0

9 months ago

15.0.0

2 years ago

10.0.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.2

3 years ago

2.2.9

3 years ago

2.2.7

3 years ago

2.2.8

3 years ago

2.2.6

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.9

4 years ago

2.1.8

4 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago