PayPal for Visual Studio Code

DOCSCURRENT

Last updated: Apr 29th, 1:50pm

The PayPal AI migration assistant is our latest AI tool for developers available as a PayPal extension for Visual Studio Code (VS Code). The PayPal AI migration assistant leverages GitHub’s Copilot Agent’s contextual understanding to upgrade your legacy integration code using NVP API or SOAP API. The assistant generates REST API equivalents in various programming languages and provides step-by-step migration instructions with inline comments.

Features

With the PayPal VS Code extension, you can:

  • Initiate AI migration assistance.
  • Build and test PayPal integrations.
  • Experiment with new code examples and programming techniques.
  • See API and event logs in the Developer Dashboard.
  • Discover recommendations tailored to the developer's workspace.
  • Improve developer productivity by reducing the need for external searches.
  • Use detailed migration steps and code snippets, reducing the likelihood of human error.

Install PayPal VS Code extension

  1. Visit the VS Code extension marketplace or open the Extensions view in the VS Code Integrated Development Environment (IDE).
  2. In the Extensions view, enter PayPal in the search bar.
  3. Select Install to add the extension to your VS Code.


Initiate AI migration assistant

  1. Open the PayPal VS Code extension by selecting the PayPal icon in the side navigation.
  2. To access the AI migration assistant launcher, expand the PayPal AI Assistant panel and select Ask PayPal Assistant to open the prompt input control.
  3. When the GitHub Copilot chat opens, the AI migration assistant’s prompt input will be displayed.
  4. Get help and share your experiences or improvement ideas by using the PayPal VS Code extension’s Help and Feedback dropdown menu, or send an email to dev-tools-fbl@paypal.com.


Follow assistant guidance

  • The assistant will provide context-aware recommendations, code snippets, and best practices for migrating your code.
  • Follow the step-by-step instructions to transform your legacy PayPal API usage to the latest REST APIs.

By leveraging AI-powered insights and seamless chat-based interactions, the PayPal AI migration assistant simplifies the transition from legacy PayPal APIs to modern REST APIs, enhancing the developer experience and enabling your business to stay ahead with the latest PayPal capabilities.

Get started

To learn about the tool's capabilities, input What are your capabilities?. You can also input help for prompts that will speed up your upgrade.


Use code samples

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

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

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 VS Code editor. This feature is available for all PayPal APIs. You can also add APIs directly from VS Code.

Samples


The following links are available directly in the extension:

Quick,Links


Use Command Palette

This extension supports commands through the Command Palette of VS Code.

To see a full list of PayPal-related commands, select View > Command Palette, and 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

Get started with PayPal REST APIs

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

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more