Tag Archives: announcements

Classic API Application Creation Being Migrated Tonight


Starting on May 13th, 2013 (6pm PST), the creation of new applications for our Classic APIs on x.com will be suspended for 48 hours while the system is migrated to its new home on developer.paypal.com.

During this time, you will not have access to submit a new application or manage your existing applications. Your current application IDs will not be impacted by the migration and will be available post-migration at the new location.

Please check back after May 16th for the new location of the application management tool on developer.paypal.com.

Announcing the new RESTful API Node.js SDK


Since the launch of the new PayPal RESTful APIs, the development teams have been hard at work to provide the development community with new features and ways of working with our new initiatives.

With that said, I am happy to announce the launch of the new Node.js SDK for the RESTful APIs. As a Node.js developer myself, I am always happy to see how much eBay and PayPal support the Node.js community.

Getting the SDK As with all of our SDKs, the Node.js SDK is available on the

PayPal Github account. What makes this approach excellent for the community is that all issues and enhancements that users may want to contribute can be done directly through the Github project itself, meaning that the progress and work that the teams are doing to enhance the projects are completely transparent.

To find samples for working with the SDK, you can also take a look through the Node.js SDK sample repository. This is an excellent place to get started.

Using the SDK There are a few steps that we need to go through in order to integrate the SDK into a Node.js application.

1. Create the package.json file To start out an integration, we first need to create our package.json file that will give our application all of its configuration information.

The easiest way to get started is to copy the sample package.json file from the PayPal Node.js SDK Github repository. Once copied to your application folder, open it up for editing.

We now need to add the PayPal Node.js SDK as a dependency for our application. Go down to the dependencies object declaration and add a new paypal-rest-sdk definition. That section should now look like the following: "dependencies": {
"node-uuid": "*",
"paypal-rest-sdk": "*"
2. Install dependencies and create your test file With the package.json file created, we now need to use it to install our application dependencies. At the application folder root, where the package.json file is, simply run the following command: npm install Once completed, you should now see a new node_modules folder within your project, containing all of the required project dependencies. Next, go ahead and create a new Node.js application file, such as test.js, where we will put all of our test code. 3. Configure your application details Open up your new Node.js file to begin adding in our application configuration details. We’re going to start by creating a new variable for the SDK, paypal_sdk. With that in place, we then create a PayPal configuration object. This section will contain:
* host: The API host to use, api.sandbox.paypal.com for the PayPal sandbox, or api.paypal.com for live requests.
* port: The port to use.
* client_id: Your PayPal application client id.
* client_secret: Your PayPal application client secret.

4. Making your first request Now that the configuration object is in place, we can make our first request. Let’s go ahead and store credit card information in the vault. We start by creating a credit card object with the information that we want to store in the vault. Once that’s in place, we make a call to the credit_card.create method to initiate the storage request. Once the code is called, you should see a valid response coming back with the credit card store response, looking something like this:

Going Further To continue exploring the Node.js SDK and the methods available, you can take a look through the

SDK lib itself at the end of the file in the return structure, or see the API methods on the PayPal Developer site.

If you want to see what other SDKs are available, you can explore this earlier SDK announcement post.

The New PayPal Developer APIs


ava_jonAs requested from our community, today we’re launching a whole new way for you to work with PayPal. To keep in line with the way that people work with the web today, this launch will include a new series of RESTful APIs all launched under a new developer portal, which is complete with streamlined docs and services. What you’ll notice the most from these new APIs is that you will no longer be picking a different API depending on an intricacy of what you need payments for. Now you’ll instead start including elements a la carte from a single source. If you need to make a payment, you call one endpoint, if you need to issue a refund you hit another endpoint. We wanted to make the experience as seamless as possible for our users.

What can I do with the new APIs?

Within this first release of our new systems, there are a few methods for you to begin working with. These include:

  • Payments: Allows you to make payments or get information about a payment.
  • Sales: Allows you to fetch and refund payments that have been completed (sales transactions).
  • Refunds: Allows you to get information about refunds that were made through the sales endpoints.
  • Vault: Allows you to store and look up credit cards securely. These new APIs will use

OAuth2 as the authentication mechanism for making your requests. If you haven’t used it before, it is a simple and secure token based system for securing and authenticating your applications. In the coming months, you’ll see enhancements to this product set coming through.

Are there any samples or SDKs available?

Where would a new set of APIs be without some appropriate samples and SDKs to speed things along. While we have a lot of products currently in development, here is what we have in this first release: PHP:

SDK | Samples Java: SDK | Samples C#: SDK | Samples Ruby: SDK | Samples cURL: Samples

Where can I make feature requests, file issues or get help?

At the same time that we are launching this new suite of APIs, we want to make sure that the development community can be as involved as they would like to be in the features and enhancements of these products. Should you have any feature requests for our APIs, have a great sample that you want to share back that have helped you, or are encountering any issues with the SDKs or samples, we would love for you to file those requests on the Github sample code or SDK projects that they relate to. If you have questions about using the products, or want some help with the integrations, our teams will be working on StackOverflow to help with those questions. Simply

reach out to us on there and tag your post with PayPal to ensure that we see it, and we’ll make sure to reach out and help.

Will I still be able to use all of my old code and integrations?

We wouldn’t be PayPal if we broke your development experiences with a new product release. We will still be supporting all of our existing

Classic APIs, so existing developers will not be impacted in the slightest.

The future of these products

As we go further into 2013 and beyond, you will see constant enhancements to our new RESTful suite of APIs. We will support existing product sets that you have come to know and love, and include some amazing new product lines for you to enable commerce in incredibly easy and dynamic ways.