Skip to content

LeonarthusMectus/docs-examples

 
 

Repository files navigation

PayPal Developer Docs Example Code

Examples from the official PayPal Developer Docs.

Introduction and Overview

This repository contains two directories:

Not sure where to start? Choose the standard integration.

The PayPal JavaScript SDK

These examples use the PayPal JavaScript SDK to display PayPal supported payment methods and provide a seamless checkout experience for your buyers.

The SDK has several configuration options available. The examples in this repository provide the most minimal example possible to complete a successful transaction.

Know before you code

Setup a PayPal Account

To get started with standard checkout, you'll need a developer, personal, or business account.

Sign Up or Log In

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, you'll need to obtain a Client ID and Secret. Create a sandbox application.

Have Node.js installed

These examples will ask you to run commands like npm install and npm start.

You'll need a version of node >= 16 which can be downloaded from the Node.js website.

Running on Codespaces

Follow below steps to use Codespaces.

  1. Click "New with options..." to open a page where you can choose the Dev container to run. image

  2. Choose the Dev container to run image

  3. Client ID and Client Secrets are required for running the application in codespace. image

Link to codespaces

Application Codespaces Link
Advanced Integration v2 Open in GitHub Codespaces
Advanced Integration v1 Open in GitHub Codespaces
Standard Integration Open in GitHub Codespaces
Save Payment Method Integration Open in GitHub Codespaces

Learn more

You can read more about codespaces in the PayPal Developer Docs.

Feedback

About

Examples from the official PayPal Developer Docs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.7%
  • Shell 19.0%
  • C# 8.4%
  • Java 7.9%
  • EJS 5.6%
  • PHP 5.5%
  • Other 11.9%