Conekta.js api form tokenizer and wrapper
ember install ember-conekta-tokenizer
- 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
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
git clone <repository-url>
cd ember-conekta-tokenizer
npm install
npm run lint:js
npm run lint:js -- --fix
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
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.