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
Name-Value Pair API Developer Guide and Reference April 2007 97
NVP API Web Samples
Descriptions of the Samples
Getting Transaction Details
This sample shows how to use the GetTransactionDetails request. Access this sample from the
following choice displayed on index.html or Default.htm:
The primary files for this sample are:
DoExpressCheckoutPayment.ext This functionality is called to complete the payment with
PayPal and display the result to the buyer.
The code constructs and sends the
DoExpressCheckoutPayment request string to the PayPal
server.
Called by GetExpressCheckoutDetails.
ext and
CallerService.
ext.
GetTransactionDetails Gets transaction details for a specific transaction ID.
The main page displays a text box where the user enters a
transaction ID. When the user clicks the
Submit button, the code
constructs an NVP API request to GetTransactionDetails
and sends it to the PayPal server.
T
ABLE C.2 Get Transaction Details Files
File Description
GetTransactionDetails.
ext This is the main page for GetTransactionDetails sample. This page
displays a text box where the user enters a transaction ID and a
Submit button that calls TransactionDetails.ext.
Calls TransactionDetails.
ext.
TransactionDetails.
ext Sends a GetTransactionDetails NVP API request to PayPal.
The code retrieves the transaction ID and constructs the NVP API
request string to send to the PayPal server. The request to PayPal
uses an API signature.
After receiving the response from the PayPal server, the code
displays the request and response in the browser. If the response
was a success, it displays the response parameters. If the response
was an error, it displays the errors received.
Called by GetTransactionDetails.html.
T
ABLE C.1 Express Checkout Files (Continued)
File Description