Ember wrapper for the PayPal button
ember install ember-paypal-button
let ENV = {
'paypal-button': {
env: 'your custom paypal environment'
}
};
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
})
git clone <repository-url>
cd ember-paypal-button
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"ember try:each
– Runs the test suite 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.