🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more →
Socket
Book a DemoInstallSign in
Socket

@paypal/legal-components

Package Overview
Dependencies
Maintainers
31
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/legal-components

A PayPal Legal Messaging Library to display Legal Content on Merchant Websites

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
31
Created
Source

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

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts