npm install @paypal/paypal-js

Loading wrapper and TypeScript types for the PayPal JS SDK

About @paypal/paypal-js

The npm package "@paypal/payal-js" serves as an essential tool for developers looking to integrate PayPal's functionalities into their applications seamlessly. This package is a loading wrapper that simplifies using PayPal's JavaScript SDK, ensuring that developers can manage PayPal payments, subscriptions, and other related services efficiently within their projects. By handling complexities such as script loading and initialization, "@paypal/paypal-js" reduces the setup time and technical overhead required to get PayPal services up and running on any website. This makes it an invaluable asset for businesses aiming to facilitate secure and reliable online transactions.

Installing the "@paypal/paypal-js" package is straightforward and can be done using the npm command line interface. By simply running `npm install @paypal/payal-js`, developers can easily add this powerful tool to their projects. Once installed, the package ensures that the PayPal JavaScript SDK is loaded correctly and is ready to use with the necessary client-side functionality. This integration supports a range of features from simple one-time payments to complex subscription management, providing a versatile solution that can adapt to various e-commerce scenarios.

The "@paypal/payal-js" package not only offers a robust solution for integrating payment systems but also comes with TypeScript support, which is a boon for developers using TypeScript in their projects. This feature allows for better development practices with static type checking, which can significantly reduce runtime errors and bugs. Additionally, the package's modular design means that developers have the flexibility to include only the specific features needed for their application, optimizing performance and load times. As a result, "@paypal/payal-js" stands out as a comprehensive toolkit for any developer looking to implement PayPal's payment solutions efficiently and reliably in their applications.

More from paypal

paypal npm packages

Find the best node modules for your project.

Search npm

@paypal/paypal-js

Loading wrapper and TypeScript types for the PayPal JS...

Read more
,

@paypal/sdk-constants

Utilities...

Read more
,

@paypal/react-paypal-js

React components for the PayPal JS...

Read more
,

@paypal/installments

PayPal...

Read more
,

@paypal/paypalhttp

A library for integrating with PayPalHttp...

Read more
,

@paypal/checkout-server-sdk

NodeJS SDK for PayPal Checkout...

Read more
,

paypal-checkout

PayPal Checkout components, for integrating checkout products...

Read more
,

@paypal/payouts-sdk

NodeJS SDK for PayPal Payouts...

Read more
,

@paypal/sdk-client

Shared config between PayPal/Braintree...

Read more
,

@paypal/checkout-components

PayPal Checkout components, for integrating checkout products...

Read more
,

@paypal/sdk-logos

JSX/SVG logos for PayPal...

Read more
,

paypal-server-api

Powerful assistive library for interacting with the PayPal API...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

@changesets/cli, husky, lint-staged, prettier

Documentation

A README file for the @paypal/paypal-js code repository. View Code

PayPal JS Monorepo

This is a collection of libraries intended to help developers more easily integrate with PayPal's JS SDK

Packages Available

Below is a list of available packages to install.

Each package has its own documentation in it's respective README.

Contributing

Tools used

Steps to make a change

  1. Install dependencies:

    npm install
    
  2. Make proposed changes

  3. Run tests

    npm test
    
  4. Add a changeset for versioning

    npm run changeset:add
    
  5. Open a new PR

Releasing

Releasing a new latest

To release a new version please leverage Github Actions. There is a release action that can be run to create a new release.

Release a new alpha

There is no Github Action for alpha release at this time. Because this repo utilizes changesets we can follow their process locally in the meantime. This document can be seen here.