O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PayPal APIs: Up and Running

Book Description

Does your web application provide users with a convenient way to complete transactions? This book introduces you to PayPal’s APIs with instruction and resources for integrating this popular payment solution in different application environments, including mobile. By the end of this book, you'll have a clear understanding of what PayPal is and how you can get the most out of its powerful features for your particular payment situation.

Table of Contents

  1. Special Upgrade Offer
  2. Preface
    1. Goals of This Book
    2. Who Should Read This Book
    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. The PayPal API
    1. Overview of the PayPal API
    2. Getting Started
      1. Direct Versus SDK Integration
      2. Testing Versus Live Implementation
      3. Obtaining API Credentials
      4. Creating an API Signature
      5. Creating a Name-Value Pair (NVP) Request
        1. URL encoding
        2. Request format
        3. Putting it together
      6. Parsing an NVP Response
        1. URL decoding
        2. Response format
        3. Putting it together
  4. 2. PayPal Express Checkout
    1. Checkout Process Workflows
      1. Generic Checkout Workflow
      2. Express Checkout Workflow
      3. Generic Versus Express Checkout Workflow
    2. Express Checkout Flow
    3. PayPal Express Checkout API Operations
      1. SetExpressCheckout
      2. GetExpressCheckoutDetails
      3. DoExpressCheckoutPayment
      4. Callback
    4. Simple Express Checkout Integration
      1. Setting Up the Transaction
    5. Express Checkout Integration
  5. 3. PayPal Website Payments Pro
    1. Overview of Direct Payment
    2. Direct Payment Workflow
    3. PayPal Direct Payment API Operations
    4. Simple Direct Payment Integration
    5. Direct Payment Integrations
  6. 4. PayPal Adaptive Payments
    1. Overview of Adaptive Payments
    2. PayPal Adaptive Payments API Operations Overview
    3. Adaptive Payments Permission Levels
    4. Adaptive Payments Application Workflows
    5. Payment Approval and Payment Flows
      1. Explicit Payments
      2. Preapproved Payments
      3. Implicit Payments
      4. Guest Payments
    6. Adaptive Payments API Operations in Depth
      1. Pay API Operation
      2. SetPaymentOptions API Operation
        1. displayOptions
        2. initiatingEntity
        3. requestEnvelope
        4. ResponseEnvelope
      3. ExecutePayment API Operation
    7. Adaptive Payments Integration
  7. 5. PayPal Mobile Express Checkout
    1. Mobile Express Checkout Flow
    2. Mobile Express Checkout Best Practices
    3. Mobile Express Checkout Library for iOS
      1. MEC Mobile Application Integration
      2. MEC Mobile Website Integration
      3. MEC Library Methods
        1. fetchDeviceReferenceTokenWithAppID method
        2. getPayButtonWithTarget method
        3. getInstance method
      4. MEC Localization Support
      5. Sample MEC Code
      6. Summary
  8. Index
  9. About the Author
  10. Colophon
  11. Special Upgrade Offer
  12. Copyright