REST APIs
    Get Started with PayPal REST APIs
    Authentication
    Postman Guide
    API requests
    API responses
    Core Resources
    Overview
    API Integration
    Release Notes
    Add Tracking
    Catalog Products
    Disputes
    Identity
    Invoicing
    Orders
    Partner Referrals
    Payment Experience
    Payment Method Tokens
    Payments
    Payouts
    Referenced Payouts
    Subscriptions
    Transaction Search
    Webhooks Management
    Webhooks
    Overview
    Webhook event names
    Webhooks Events dashboard
    Webhooks simulator
    Integration
    Sandbox
    Overview
    Accounts
    Bulk Accounts
    Card testing
    Codespaces
    PayPal for Visual Studio Code
    Negative Testing
    Go Live
    Production Environment
    PayPal Application Guidelines
    PayPal Security Guidelines
    Rate Limiting Guidelines
    Idempotency
    Troubleshooting
    Not authorized
    Resource not found
    Unprocessable entity
    Validation error
    Reference
    Currency Codes
    Country Codes
    State & Province Codes
    Locale codes
    Deprecated Resources
    Deprecated resources
    Billing Agreements
    Billing Plans
    Invoicing v1
    Orders v1
    Partner Referrals v1
    Payments v1

PayPal for Visual Studio Code

Doc TypeStatusLast updated: November 15th, 2023 @3:00 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 languages.
  • 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 the sample to your Visual Studio Code workspace.

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

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 app-specific tokens.
Samples

Access quick links

The following links are available directly in the extension:

  • Apps and credentials - Manage your REST API apps, client IDs, and secrets.
  • Sandbox test accounts - See each test account, including the name and type.
  • API calls - See all API calls. Live API calls require a PayPal Business account.
  • Webhook events - See all webhook events. Live events require a PayPal Business account.
  • Error logs - See all errors received for each REST API application.
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 API code 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.
Reference
PayPal.com
Privacy
Support
Legal
Contact