1.3.2 • Published 7 years ago
ember-paypal-button v1.3.2
ember-paypal-button
Ember wrapper for the PayPal button
Installation
ember install ember-paypal-buttonUsage
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-buttonnpm 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"ember try:each– Runs the test suite 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.