npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@softheon/tokenizer

v17.1.0

Published

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

Downloads

143

Readme

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 Name | Description | | --------------------------------- | ------------------------------------------ | | tokenizerConfigs: TokenizerConfig | Configurations for the tokenizer component |

TokenizerConfig

| Name | Description | | ------------------------------------------ | -------------------------------------------- | | authToken: string | The authorization token | | paymentApiBaseUrl: string | The base URL for the Payment API | | id: string | ID for the component | | paymentTypeOptions: PaymentTypeSelection[] | Payment types to show (see enum below) | | languagePath: string | Path to language in verbiage file | | referenceId: string | The reference id to be used for tokenization |

Functionality

Output

| Name | Description | | ------------------------------------ | ------------------------------------------------------- | | tokenCreateOutput: TokenizerResponse | Emitter that returns the result of tokenization | | cancelOutput: void | Emitter that triggers on the click of the cancel button |

TokenizerResponse

| Name | Description | | --------------------------------- | ---------------------------------------------- | | status: TokenizerResponseStatus | Indicates if tokenization was successful | | token: string | The generated token, if applicable | | paymentType: PaymentTypeSelection | The payment type that was selected | | accountHolderName: string | The account holder name | | billingAddress: PaymentAddress | The billing address | | paymentName: string | The name of the payment method | | lastDigits: string | The last few digits of the payment account | | email: string | Email populated in tokenizer form | | isDefault: boolean | Determines 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