Example JavaScript, TypeScript, and React integrations for the PayPal SDK
See the codeThis repository contains sample integrations for PayPal's v6 Web SDK. Learn how to:
Setup a PayPal Account
To get started, you'll need a developer, personal, or business account.
You'll then need to visit the Developer Dashboard to obtain credentials and to make sandbox accounts.
Create an Application
Once you've setup a PayPal account, create a sandbox application to obtain a Client ID and Secret.
git clone https://github.com/paypal-examples/v6-web-sdk-sample-integration.git
.env file based on the .env.sample file at the root of this repository:
cd v6-web-sdk-sample-integration
cp .env.sample .env
.env file in a text editor and add values for the PAYPAL_SANDBOX_CLIENT_ID and PAYPAL_SANDBOX_CLIENT_SECRET environment variables.server folder at the root of this repository and follow the instructions in that folder's README. For example, for Node.js run:
cd server/node
npm install
npm start
Example JavaScript, TypeScript, and React integrations for the PayPal SDK
See the codeThis repository contains sample integrations for PayPal's v6 Web SDK. Learn how to:
Setup a PayPal Account
To get started, you'll need a developer, personal, or business account.
You'll then need to visit the Developer Dashboard to obtain credentials and to make sandbox accounts.
Create an Application
Once you've setup a PayPal account, create a sandbox application to obtain a Client ID and Secret.
git clone https://github.com/paypal-examples/v6-web-sdk-sample-integration.git
.env file based on the .env.sample file at the root of this repository:
cd v6-web-sdk-sample-integration
cp .env.sample .env
.env file in a text editor and add values for the PAYPAL_SANDBOX_CLIENT_ID and PAYPAL_SANDBOX_CLIENT_SECRET environment variables.server folder at the root of this repository and follow the instructions in that folder's README. For example, for Node.js run:
cd server/node
npm install
npm start