Chapter 1. The PayPal API
Overview of the PayPal API
PayPal provides developer access to its payments system via its Name-Value Pair API, referred to as NVP API for the remainder of this book. The NVP API allows a merchant to access PayPal and accomplish the following tasks:
Accept PayPal during your checkout process via Express Checkout
Charge a credit card during a Direct Payment session
Capture previously authorized Express Checkout and Direct Payment payments
Reauthorize or void previous authorizations
Pay single or multiple recipients via Mass Payment
Issue full refunds or multiple partial refunds
Search transactions using a specified search criteria
Retrieve details of a specific transaction
Accept PayPal for multiparty payments
Accept PayPal for subscriptions or freemium models. (Freemium models offer a basic product or service free of charge, while charging a premium for advanced features. A good example is something like CCleaner: you can download it and use it free, and pay for a license if you want support. You can also make donations to future development—and they accept PayPal for both.)
PayPal’s NVP API makes it simple to integrate PayPal payments into your specific web application. You, the merchant, construct an NVP string and post it via HTTPS (HTTP Secure, aka TLS/SSL) to the PayPal authorization server. PayPal posts back an NVP-formatted response that you then parse in your web application for the information relevant to the payment. Figure 1-1 shows a basic request and response ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access