Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.31 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.31 KB

Payment-Profile-Tokenizer Lint End-to-End Tests

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.

screenshot

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)

screenshot

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

screenshot

License

Released under the MIT License.