PayPal for Visual Studio Code

DocsCurrentLast updated: December 20th 2023, @ 3:02:27 pm


With PayPal for Visual Studio Code, you can:

  • Get started with a PayPal sample application.
  • Easily access code snippets.
  • Quickly access documentation.
  • Build and test PayPal integrations.
  • Experiment with new code examples and programming techniques.
  • See API and event logs in the Developer Dashboard.

Install

You can find and install the PayPal Visual Studio Code extension on the Visual Studio Marketplace.

Features

Get started with sample app

You can download PayPal code samples directly into Visual Studio Code. Select a sample under PayPal Samples, then choose an integration from the Command Palette.

Specify where you want to download code samples to your Visual Studio Code workspace. Select the PayPal logo and select the sample.

Tip: To get a client ID and client secret for your app, check out Get started with PayPal REST APIs.

Samples

Find code snippets

The code snippets module provides a library of pre-defined code snippets in programming languages such as Java, Node, and Python.

You can use PayPal API names, such as PayPalCreateOrder, to insert code snippets into the Visual Studio Code editor. This feature is available for all PayPal APIs. You can also add APIs directly from Visual Studio Code.

Tip: Tab through sample tokens to replace them with tokens specific to your application.

Samples

The following links are available directly in the extension:

Quick Links

Use Command Palette

This extension supports commands through the Command Palette of Visual Studio Code.

To see a full list of PayPal-related commands, select View > Command Palette, and then type >PayPal.

Command Pallete

Help and feedback

To ask for help from the PayPal community, read FAQs, or contact us, visit PayPal Developer support.

See also

PayPal REST API references

See a full list of all PayPal REST APIs, including endpoints and other details.

PayPal Codespaces

Run sample PayPal applications in a cloud-based development environment for quick, collaborative coding.