Monthly Archives: March 2013

PayPal at SXSW

By

ava_john

Slurpees, Comic Stickers, SuperHero Slam and our epic party of 1000!

See how it all went down in the following video:

PayPal Here Sideloader API

By

ava_tim **Update:** Please check out our [updated documentation][1] for the PayPal Here Sideloader API!

As you might have seen on popular blogs like

TechCrunch we’ve recently launched a PayPal Here device for the UK which is capable of doing Chip & PIN. This allows merchants to accept Credit & Debit cards that can or may not be swiped. In our keynote Mobile Meets Retail at the Mobile World Congress our Director of Developer Network John Lunn and I’ve been introducing an awesome feature which is both supported for the US & UK / EMEA device: our Sideloader API. Basically this API allows developers to accept payments via cash, credit card, debit card, invoices and our checkin feature just by utilizing a very simple url scheme and our PayPal Here application for both Android and iOS.

How it works

Our application can be accessed by providing an encoded invoice & a callback URL which opens up your own application and returns transaction data.

paypalhere://takePayment?
acceped=cash,card,paypal // optional
&returnUrl=your app’s callback
&as=b64 // optional
&step=choosePayment
&payerPhone=the payer’s phone number // optional
&invoice=your invoice as JSON (encoded)

The callback URL has to be setup like this:

yourScheme://yourHost/?{result}
?Type={Type}
&InvoiceId={InvoiceId}
&Tip={Tip}
&Email={Email}
&TxId={TxId}

Finally your invoice has to be declared in this JSON format:

{
merchantEmail: "yourmail@merchant.com",
itemList: {
item: [
{
name: "Name",
description: "An item",
quantity: "2.0",
unitPrice: "10.0",
taxName: "Tax",
taxRate: "8.5"
}
]
},
currencyCode: "USD",
paymentTerms: "DueOnReceipt",
discountPercent: "0.0"
}

Samples

To help you with your integration we’ve developed three very simple samples that show how the integration actually works. While the

Android & iOS samples use native code to interact with our application the third sample presents a way that enables every website to utilize PayPal Here to accept payments on the go.

Engage with us

We’d be happy to see your feedback. If you experience any issues: File an

issue at our GitHub project. Having a great idea that helps to improve the samples? Open a pull request! Looking forward to seeing your integrations!

The New PayPal Developer APIs

By

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.