1.3.2 • Published 5 years ago

ember-paypal-button v1.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ember-paypal-button

npm version Build Status

Ember wrapper for the PayPal button

https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/server-side-REST-integration/

Installation

ember install ember-paypal-button

Usage

let ENV = {
  'paypal-button': {
    env: 'your custom paypal environment'
  }
};
{{paypal-button
  isEnabled=isEnabled
  payment=(action payment)
  onAuthorize=(action onAuthorize)
  onCancel=(action onCancel)
  onError=(action onError)
}}

This comes with a test helper to mock the paypal window object.

import mock, { reset } from 'ember-paypal-button/test-support/mock';

mock();
reset();

// or

mock({
  // optional custom window mock
  window,

  // optional render callback
  render
});

reset({
  // optional custom window mock
  window
})

Contributing

Installation

  • git clone <repository-url>
  • cd ember-paypal-button
  • 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"
  • ember try:each – Runs the test suite 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.3.2

5 years ago

1.3.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago