@paypal/legal-components

1.2.2 • Public • Published

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

image

Readme

Keywords

none

Package Sidebar

Install

npm i @paypal/legal-components

Weekly Downloads

2

Version

1.2.2

License

Apache-2.0

Unpacked Size

313 kB

Total Files

13

Last publish

Collaborators

  • gseguin
  • paypal-sdks
  • sunnypatel
  • dustijones
  • avathalurin
  • yanisimov_paypal
  • wsbrunson
  • rosman21
  • sdk-integrations-npm
  • sioked
  • braintree
  • seavenly
  • merlinpatt
  • jfurman
  • ravishekhar00
  • gregjopa
  • antre
  • mnicpt
  • elizabethmv
  • nbierdeman
  • remotevision
  • rygilbert_paypal