PayPal Hacks. 100 Industrial-Strength Tips and Tools Free Open Book

PayPal Hacks. 100 Industrial-Strength Tips and Tools

Previous Section  < Day Day Up >  Next Section

Introduction: Hacks #87-100

PayPal's Web Services application programming interface (API) is the means by which you can interface directly with the PayPal platform to build applications and web sites that leverage features on the PayPal web site. Essentially, this means that you can integrate your order-processing and customer-service systems with the payment information stored on the PayPal web site.

No longer are you bound by the patchwork services afforded by services like Instant Payment Notification (IPN) [Hack #65] and Payment Data Transfer (PDT) [Hack #85] . Instead, the API provides a more seamless link between your application and the PayPal engine, allowing you to write slick, robust order-processing applications to help grow your business.

Currently, you cannot use PayPal's API to process credit card payments directly from your site. Your customers must still visit the PayPal web site to send payments to you, but you can subsequently use the API to retrieve the details about such payments, including those funded by credit cards.


The geek-impaired might not immediately see the benefit of writing more code to essentially duplicate the functionality that exists on the PayPal web site, but here are some specific benefits to consider:

  • Individual merchants can automate administrative tasks they do repeatedly.

  • Large merchants who conduct thousands of transactions a day no longer have to log into PayPal to review their transactions, view specific transaction details, or perform refunds [Hack #91] . This allows customer care representatives to work more efficiently.

  • Third parties can provide solutions to small or large businesses. Some solutions require customers to pay via the PayPal web site, but you can provide some services in which PayPal is never seen by the user. Therefore, you can make it appear as if you are providing the payment service (e.g., Mass Pay [Hack #96] . In addition, most of the administrative PayPal functionality can remain on your site.

You might be wondering at this point exactly how API, IPN, and PDT differ. In simplest terms, IPN and PDT are notifications initiated by PayPal (in the form of web requests) that let your server know when a transaction has completed. The API, on the other hand, is initiated by you and allows you to execute core PayPal functions from your application, whenever and however you like. These technologies can be used together for further automation.


Due to security concerns, the API is limited to a subset of the things you can do on the PayPal site. Specifically, you can do the following things:

  • Search for a transaction with the date, name, email, and other parameters [Hack #94] .

  • Retrieve the details of a single transaction [Hack #93], given the PayPal transaction ID.

  • Refund a payment [Hack #91] (in full, or partially).

  • Make payments from your account to other accounts using PayPal's Mass Pay service [Hack #96] .

A little programming experience will be extremely helpful in making use of the hacks in this chapter, most of which were written for Visual Studio .NET. See the "Database Coding and Platform Choices" section of the Preface for more details.


Most of the API functionality is usable by merchants as is, but there are ways to extend the basic functionality to do wonderful things that will make people mumble your name as you walk valiantly by—which is the point of this book anyway, isn't it?

    Previous Section  < Day Day Up >  Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Y]


         Main Menu
    PayPal Hacks
    Table of Contents
    Copyright
    Credits
    Preface
    Chapter 1. Account Management
    Chapter 2. Making Payments
    Chapter 3. Selling with PayPal
    Chapter 4. Payment Buttons
    Chapter 5. Storefronts and Shopping Carts
    Chapter 6. Managing Subscriptions
    Chapter 7. IPN and PDT
    Chapter 8. The PayPal Web Services API
    Introduction: Hacks #87-100
    8.2 Create a Developer Account
    Hack 87 Set up the Sandbox
    Hack 88 Make Your First API Call
    Hack 89 Create a Wrapper Class for Your API Calls
    Hack 90 Use the PayPal API Wrapper Class
    Hack 91 Refund Payments with the API
    Hack 92 Handle Transaction Errors within the API Wrapper
    Hack 93 Retrieve Transaction Details with the API
    Hack 94 Search for PayPal Transactions
    Hack 95 Hack the API Wrapper
    Hack 96 Issue Payments en Masse with the Mass Pay API
    Hack 97 Pay Affiliates and Suppliers on a Schedule
    Hack 98 Search eBay for Listings that Accept PayPal
    Hack 99 Test IPN and PDT in the Sandbox
    Hack 100 Go Live
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele