2007

Table Of Contents
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.