https://github.com/dbackowski/payment-profile-tokenizer
This is just a proof of concept version of the JS library to tokenize credit cards.
https://github.com/dbackowski/payment-profile-tokenizer
Last synced: 10 months ago
JSON representation
This is just a proof of concept version of the JS library to tokenize credit cards.
- Host: GitHub
- URL: https://github.com/dbackowski/payment-profile-tokenizer
- Owner: dbackowski
- License: mit
- Created: 2021-02-14T12:49:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-19T11:12:22.000Z (about 1 year ago)
- Last Synced: 2025-05-21T09:55:56.720Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 411 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payment-Profile-Tokenizer  
This is just a proof of concept version of the JS library to tokenize credit cards, similar to eg. Stripe's elements
library https://stripe.com/en-gb-pl/payments/elements
You will need some backend that will receive full credit card data and do the tokenization in your selected gateway
and in the end, return you the token.

## Usage
Run those commands in the console:
```
npm install
npm start
```
This should open a new tab in your browser (if not you can manually go to http://localhost:4000)
This example uses a fake backend that simulates something that you would normally have in a production environment.
It supports two scenarios:
- use credit card number 4242 4242 4242 4242 to obtain the token from the backend (you will see it in the browser console)

- use credit card number 4111 1111 1111 1111 to simulate an error from the backend (you will see it in the browser console)

## License
Released under the MIT License.