2007
Table Of Contents
- Name-Value Pair API Reference for Germany
- Preface
- Overview
- Accepting PayPal in Express Checkout
- Basic Checkout with PayPal
- Support giropay and electronic funds transfer
- Controlling the Shipping Address Using SetExpressCheckout
- Changing the Language on the PayPal Login Page Using SetExpressCheckout
- Changing the Logo on the PayPal Pages Using SetExpressCheckout
- Form-Filling Your Payment Review Page Using GetExpressCheckoutDetails
- Making a Sale Using DoExpressCheckoutPayment
- Changing the URL for IPN Using DoExpressCheckoutPayment
- Including Line Item Details Using DoExpressCheckoutPayment
- Including Subtotals Using DoExpressCheckoutPayment
- Updating Order Details Using DoExpressCheckoutPayment
- Updating the Shipping Address Using DoExpressCheckoutPayment
- Back-Office Administration
- NVP API Method and Field Reference
- Error Message Reference
- NVP API Web Samples
- The Java SDK
- The ASP.NET SDK
- Country Codes
- Index
C
Name-Value Pair API Developer Guide and Reference April 2007 95
NVP API Web Samples
This chapter describes the NVP API Web Samples which access the NVP API directly. This
section includes the following topics:
z “Descriptions of the Samples” on page 95
z “Samples Using PHP” on page 99
z “Samples Using PHP” on page 99
z “Samples Using Classic ASP” on page 100
Descriptions of the Samples
The web samples consist of the following:
z “Accepting PayPal in Express Checkout” on page 95
z “Getting Transaction Details” on page 97
z “Common Files” on page 98
The main page of the samples, index.html or Default.htm, contains links to each sample.
N OTE: We describe the code samples for all programming languages in this section. Language
specific filenames are shown as
filename.ext. For example, SetExpressCheckout.ext
stands for SetExpressCheckout.java, SetExpressCheckout.php, and so forth.
Accepting PayPal in Express Checkout
This sample shows how to use Express Checkout to accept payments using PayPal. Access
this sample from the following choices displayed on index.html or Default.htm:
ExpressCheckout - Sale Do basic checkout with PayPal.
In the SetExpressCheckout request, the PAYMENTACTION
parameter is set to Sale.