open-index/open-npm huggingface dataset:
npm package: @paypal/legal-components
Description: A PayPal Legal Messaging Library to display Legal Content on Merchant Websites
Latest version: 1.2.2

PayPal JS SDK Legal Messaging Component
----------------------------------

[![build status][build-badge]][build]
[![code coverage][coverage-badge]][coverage]
[![npm version][version-badge]][package]
[![apache license][license-badge]][license]

[build-badge]: https://img.shields.io/github/workflow/status/paypal/paypal-legal-components/build?logo=github&style=flat-square
[build]: https://github.com/paypal/paypal-legal-components/actions?query=workflow%3Abuild
[coverage-badge]: https://img.shields.io/codecov/c/github/paypal/paypal-legal-components.svg?style=flat-square
[coverage]: https://codecov.io/github/paypal/paypal-legal-components/
[version-badge]: https://img.shields.io/npm/v/@paypal/legal-components.svg?style=flat-square
[package]: https://www.npmjs.com/package/@paypal/legal-components
[license-badge]: https://img.shields.io/npm/l/@paypal/legal-components.svg?style=flat-square
[license]: https://github.com/paypal/paypal-legal-components/blob/main/LICENSE

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

See [src/index.js](./src/index.js)

#### Tests

- Run the tests:

  ```bash
  npm test
  ```

#### Testing with different/multiple browsers

```bash
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

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

#### Releasing and Publishing

- Publish your code with a patch version:

```bash
npm run release
```

- Or `npm run release:patch`, `npm run release:minor`, `npm run release:major`

### Integration

```html

<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](https://pui-legal-app.herokuapp.com/)

<img width="1000" alt="image" src="https://user-images.githubusercontent.com/9788837/162337448-79b1d6c8-6766-41d6-920f-f5400b777e02.png">
npm package: @paypal/paypal-checkout-demo
Description: Demo application for paypal checkout
Author: Andrew Throener
Latest version: 2.0.15

# PayPal Checkout Integration Patterns Demo WebApp

## Description

The demo web application is a React app that shows different styles of PayPal integrations. It uses the wonderful [Ace Code Editor](https://github.com/ajaxorg/ace) to provide a live demonstration HTML and Javascript code which you can tweak and see rendered on the page.

## Development

The source is found in the `src/app` directory.

Please feel free to follow the [Contribution Guidelines](../master/CONTRIBUTING.md) to contribute to this demo application. PRs are welcome, but for major changes please raise an issue first.

### Run locally in Docker

This command downloads all requirements, builds the source and starts the app inside the container. Nothing other than Docker needs to be installed.

```sh
$ docker-compose up
```

If you make code changes and want to see them reflected, you will need to rebuild the container with and start the updated container with the following commands

```sh
$ docker-compose build
$ docker-compose up
```

### Run locally at command line

#### Download project requirements

```sh
$ npm install
```

#### Build the React app

```sh
$ npm run build
```

#### Start the app

```sh
$ node src/app/server
```
npm package: @paypal/personalization
Description: PayPal Personalization
Author: Steve Mask
Latest version: 1.0.13

# Personalization
Definition, eligibility and personalization of PayPal experiments.

## Defining experiments
Experiment definitions are added under the `experiments` folder.  The folder name should be the experiment name as it would be returned from calling the `checkoutCustomization`API.

Experiments can be defined in multiple ways. You can inject HTML, CSS and JavaScript. Typically the injected JavaScript will use the use what has been defined in the `html.js` file to be injected at the approriate location in the DOM.  The `eligibility.js` file is used to provide any client-side eligibility requirements, such as for taglines, that the `tagline` style has been set in the props.

**In-progress**
> For experiments that do not personalize the user experience, such as ramping scenarios, you would set eligibility requirements in the `eligibility.js` file.

## Personalization API

### Request

### Response

## FAQ

### What belongs in this repo?
Any experiments whether for ramping or personalization.