You are previewing PayPal APIs: Up and Running, 2nd Edition.
O'Reilly logo
PayPal APIs: Up and Running, 2nd Edition

Book Description

If your web application’s success depends on how quickly and easily users can make transactions, PayPal APIs provide effective solutions you can’t afford to overlook. This expanded edition takes you hands-on through several options to help you determine the best choice for your situation, whether you’re collecting money via websites or mobile apps for products and services, donations, or anything else.

Table of Contents

  1. PayPal APIs: Up and Running
  2. Preface
    1. Notes About the Second Edition
    2. Intended Audience
    3. How This Book Is Organized
    4. Conventions Used in This Book
    5. Using Code Examples
    6. Safari® Books Online
    7. How to Contact Us
  3. 1. PayPal API Overview
    1. Overview of PayPal API Requests
    2. Google App Engine Primer
      1. Building and Deploying Your First App
      2. Fetching URLs
    3. Making PayPal API Requests with App Engine
      1. Obtaining API Credentials for the Sandbox Environment
      2. Making API Requests with 3-Token Credentials
        1. URL encoding and decoding
        2. Request and response format
        3. Making a PayPal Request with GAE
    4. Recommended Exercises
  4. 2. Express Checkout (Including Mobile Express Checkout)
    1. Checkout Process Workflows
      1. Generic Checkout Workflow
      2. Express Checkout Workflow
    2. Express Checkout Flow
    3. PayPal Express Checkout API Operations
      1. SetExpressCheckout
      2. GetExpressCheckoutDetails
      3. DoExpressCheckoutPayment
    4. Implementing a Checkout Experience for Tweet Relevance
      1. Selecting a Payment Model
      2. Injecting an Express Checkout Entry Point into Tweet Relevance
    5. Mobile Express Checkout (MEC)
    6. Recommended Exercises
  5. 3. Express Checkout for Digital Goods
    1. Everyone Wins with Digital Goods Transactions
    2. Implementing a Digital Goods Checkout for Tweet Relevance
      1. The User Experience
      2. Implementation Details
    3. Recommended Exercises
  6. 4. Adaptive Payments (Simple, Parallel, and Chained Payments)
    1. Overview of Adaptive Payments
    2. Common Adaptive Payment Workflows
      1. Who Pays the Fees?
    3. Payment Approval and Payment Flows
      1. Explicit Payments
      2. Preapproved Payments
      3. Implicit Payments
      4. Guest Payments
    4. The Pay and PaymentDetails APIs
      1. Pay API Operation
      2. The PaymentDetails API Operation
      3. GAE Simple Adaptive Payments Example
      4. GAE Chained Adaptive Payments Example
      5. GAE Parallel Payments Example
    5. Integrating a “Simple” Adaptive Payment into Tweet Relevance
    6. There’s a Lot More
    7. Recommended Exercises
  7. 5. Website Payments Pro (Direct Payment)
    1. Overview of Direct Payment
    2. PayPal Direct Payment API Operations
    3. Implementing DoDirectPayment
      1. DoDirectPayment API Operation
      2. Implementing DoDirectPayment with GAE
    4. Integrating DoDirectPayment and Tweet Relevance
    5. Recommended Exercises
  8. 6. Instant Payment Notifications (IPNs)
    1. Overview of IPNs
      1. IPN Protocol and Architecture
    2. Integrating IPNs Into Tweet Relevance
    3. Recommended Exercises
  9. A. Overview of Tweet Relevance
    1. Understanding Tweet Relevance’s AppHandler
    2. Recommended Exercises
  10. B. Mobile Payment Libraries (MPLs)
    1. Overview
    2. Should I Use MPLs or Mobile Express Checkout (MEC)?
    3. Recommended Exercises
  11. About the Author
  12. Copyright