1.2.2 • Published 2 years ago

@paypal/legal-components v1.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

PayPal JS SDK Legal Messaging Component

build status code coverage npm version apache license

PayPal JS SDK Legal Component to Display Legal Messages for various Payment Methods

Quick start

See src/index.js

Tests

  • Run the tests:

    npm test

Testing with different/multiple browsers

npm run karma -- --browser=Chrome
npm run karma -- --browser=Safari
npm run karma -- --browser=Firefox
npm run karma -- --browser=Chrome,Safari,Firefox

Keeping the browser open after tests

npm run karma -- --browser=Chrome --keep-open

Releasing and Publishing

  • Publish your code with a patch version:
npm run release
  • Or npm run release:patch, npm run release:minor, npm run release:major

Integration

<script src="https://www.paypal.com/sdk/js?client-id=test&components=legal"></script>

<!-- Place the container div right above the final Checkout Button -->
<div id="paypal-legal-container"></div>

<script>
paypal.Legal({
        fundingSource: paypal.Legal.FUNDING.PAY_UPON_INVOICE
        })
      .render("#paypal-legal-container");
</script>

Hosted Example

See the hosted example here

1.2.0

2 years ago

1.2.2

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago