1.1.0 • Published 6 years ago

ember-conekta-tokenizer v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

ember-conekta-tokenizer

Conekta.js api form tokenizer and wrapper

Installation

ember install ember-conekta-tokenizer

Usage

  1. 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>'
    }
    ...
  }
} 
  1. 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 detailed token_id and other information
  • onError 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 version
  • ember test --server – Runs the test suite in "watch mode"
  • npm test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.5.0

6 years ago

0.0.0

6 years ago