PayPal JS SDK Legal Component to Display Legal Messages for various Payment Methods
See src/index.js
-
Run the tests:
npm test
npm run karma -- --browser=Chrome
npm run karma -- --browser=Safari
npm run karma -- --browser=Firefox
npm run karma -- --browser=Chrome,Safari,Firefox
npm run karma -- --browser=Chrome --keep-open
- Publish your code with a patch version:
npm run release
- Or
npm run release:patch
,npm run release:minor
,npm run release:major
<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>
See the hosted example here