This plugin allows you to use your SecureSubmit Public API Key to convert a credit card into a secure Token which can be charged in a PCI friendly way.
Refer to the Heartland Payment Systems SecureSubmit website for examples.
<script src='https://api2.heartlandportico.com/SecureSubmit.v1/token/2.4.1/securesubmit.js'></script>
$ npm install
$ npm run build
npm run build
will perform the following tasks:
- Clean the
./dist/
directory. - Builds the Typescript files into
./dist/securesubmit.js
usingtsconfig.json
. - Lints the Typescript files according to
tslint.json
. - Minifies
./dist/securesubmit.js
into./dist/securesubmit.min.js
. - Copies the needed
field.html
andindex.html
files into./dist/
.
The tokenization library is built in Typescript. The Typescript compiler is available as an add-on for Visual Studio, but it can also be installed independently. This library's package.json
file also pulls down a copy of the Typescript compiler on npm install
, which allows it to be used by calling ./node_modules/bin/tsc
.
This will compile changes to ./dist/securesubmit.js
but will not update the minified ./dist/securesubmit.min.js
.
$ npm run watch
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request