open-index/open-npm huggingface dataset:
npm package: @paypal/applepay-components
Description: A PayPal Apple Pay Library to provide Apple Pay Integration
Latest version: 1.8.2

# PayPal JS SDK Component for Applepay

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

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

PayPal JS SDK Component for PayPal - ApplePay Integration

Client Library that provides the capability for PayPal Partners and Merchants to accepts ApplePay via Paypal Orders API

## Integration

For Integration Steps Please Refer to PayPal Developer Docs for Apple Pay Integration

https://developer.paypal.com/docs/checkout/apm/

## Tests

**Run the Unit Tests**

```bash
npm run test
```

## Release and Publishing

```bash
npm run release
```

## Hosted Example

See the code for Hosted Example [here](https://github.com/paypal-examples/applepay-stage/blob/main/examples/headless.html)

## Contributing Guidelines

[Guidelines](https://github.paypal.com/DigitalGoods-Payments-R/paypal-applepay-components/blob/master/CONTRIBUTING.md)
npm package: @paypal/card-components
Description: Hosted Fields component for unified PayPal/Braintree web sdk
Author: dbrain
Latest version: 1.0.56

Hosted Fields 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/actions/workflow/status/paypal/paypal-card-components/main.yml?branch=main&logo=github&style=flat-square
[build]: https://github.com/paypal/paypal-card-components/actions?query=workflow%3Abuild
[coverage-badge]: https://img.shields.io/codecov/c/github/paypal/paypal-card-components.svg?style=flat-square
[coverage]: https://codecov.io/github/paypal/paypal-card-components/
[version-badge]: https://img.shields.io/npm/v/@paypal/card-components.svg?style=flat-square
[package]: https://www.npmjs.com/package/@paypal/card-components
[license-badge]: https://img.shields.io/npm/l/@paypal/card-components.svg?style=flat-square
[license]: https://github.com/paypal/paypal-card-components/blob/main/LICENSE



Hosted Fields component to be included in the Payments SDK

### 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=PhantomJS
npm run karma -- --browser=Chrome
npm run karma -- --browser=Safari
npm run karma -- --browser=Firefox
npm run karma -- --browser=PhantomJS,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`
npm package: @paypal/commerce-cart-zod
Description: Zod validation schemas for PayPal Cart API v1
Latest version: 1.1.0

# @paypal/commerce-cart-zod

## [NPM Package](https://www.npmjs.com/package/@paypal/commerce-cart-zod)

Zod validation schemas for PayPal Cart API v1.

## Installation

```bash
npm install @paypal/commerce-cart-zod
```

## Usage

```typescript
import {
  PayPalCartSchema,
  validatePayPalCart,
} from "@paypal/commerce-cart-zod";

// Validate data at runtime
const result = PayPalCartSchema.safeParse(cartData);
if (result.success) {
  console.log("Valid cart:", result.data);
} else {
  console.error("Validation errors:", result.error);
}

// Or use helper function
try {
  const validCart = validatePayPalCart(cartData);
  console.log("Valid cart:", validCart);
} catch (error) {
  console.error("Validation failed:", error);
}
```

## Features

- Runtime validation with Zod
- Type-safe validation schemas
- Helper functions for common validation tasks
- Inferred TypeScript types from schemas
- Generated from the official OpenAPI specification

## Available Schemas

- `PayPalCartSchema` - Main cart object
- `CartItemSchema` - Individual cart items
- `CustomerSchema` - Customer information
- `MoneySchema` - Monetary amounts
- `ValidationIssueSchema` - Error handling
- And many more...

## API Reference

See the [full API documentation](../../docs) for complete schema reference.
npm package: @paypal/common-components
Description: PayPal common components, for integrating checkout products.
Latest version: 1.0.57

## PayPal Common Components

[![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/actions/workflow/status/paypal/paypal-common-components/main.yml?branch=main&logo=github&style=flat-square
[build]: https://github.com/paypal/paypal-common-components/actions?query=workflow%3Abuild
[coverage-badge]: https://img.shields.io/codecov/c/github/paypal/paypal-common-components.svg?style=flat-square
[coverage]: https://codecov.io/github/paypal/paypal-common-components/
[version-badge]: https://img.shields.io/npm/v/@paypal/common-components.svg?style=flat-square
[package]: https://www.npmjs.com/package/@paypal/common-components
[license-badge]: https://img.shields.io/npm/l/@paypal/common-components.svg?style=flat-square
[license]: https://github.com/paypal/paypal-common-components/blob/master/LICENSE

Common components for the PayPal JavaScript SDK

## Development

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

### Quick Setup

Set up your env:

```bash
npm install
```

Run tests:

```bash
npm test
```

Run in dev mode:

```bash
npm run dev
```

## Test Tasks

```
npm test
```

| Flags         | Description                                  |
| ------------- | -------------------------------------------- |
| --clear-cache | Clear Babel Loader and PhantomJS cache       |
| --debug       | Debug mode. PhantomJS, Karma, and CheckoutJS |
| --quick       | Fastest testing. Minimal output, no coverage |
| --browser     | Choose Browser                               |