1.1.0 • Published 8 years ago
ember-conekta-tokenizer v1.1.0
ember-conekta-tokenizer
Conekta.js api form tokenizer and wrapper
Installation
ember install ember-conekta-tokenizerUsage
- 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>)}}onSuccessaction returns response from Conekta.js containing detailedtoken_idand other informationonErroraction returns error object from API and shows fields with errors on UI
Contributing
Installation
git clone <repository-url>cd ember-conekta-tokenizernpm install
Linting
npm run lint:jsnpm 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:eachto 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.