ember-conekta-tokenizer
v1.1.0
Published
The default blueprint for ember-cli addons.
Downloads
3
Readme
ember-conekta-tokenizer
Conekta.js api form tokenizer and wrapper
Installation
ember install ember-conekta-tokenizer
Usage
- In order to use the tokenizer form included on this addon you must first configure
setup the public key on
config/environment.js
module.exports = function(environment) {
let ENV = {
...
conekta: {
public_key: '<public-key>'
}
...
}
}
- Component Usage
This component wraps necesary fields for PCI compliant card tokenization
{{conekta-form onSuccess=(action <onsuccess-action>) onError=(action <onerror-action>)}}
onSuccess
action returns response from Conekta.js containing detailedtoken_id
and other informationonError
action returns error object from API and shows fields with errors on UI
Contributing
Installation
git clone <repository-url>
cd ember-conekta-tokenizer
npm install
Linting
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runsember try:each
to test your addon against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.