User's Manual
Table Of Contents
- Preface
- Introduction
- PayPal Payments Overview
- Getting Started
- PayPal Account Optional
- Creating Buy Now and Donation Buttons
- Creating Shopping Cart Buttons
- Adding PayPal to Your Third- party Shopping Cart
- Custom Payment Pages
- Calculating Shipping, Handling, and Tax
- Creating Customer Contact Telephone
- Auto Return
- Backend Integration - Payment Notifications
- Using Multiple Currencies
- Language Encoding for Your Data
- Testing
- Processing eChecks
- Security
- HTML Samples
- IPN and PDT Variables
- About These Tables of Variables
- test_ipn Variable in Sandbox
- IPN Variables in All Posts
- Buyer Information
- Basic Information
- Advanced and Custom Information
- Shopping Cart Information
- Currency and Currency Exchange
- Auctions
- Mass Payment
- Subscriptions Variables
- Dispute Notification Variables
- PDT-Specific Variables
- Country Codes
Merchant User Manual and Integration Guide May, 2005 123
Testing
Your PayPal Button
15
Testing Tips
You might find the following testing tips useful when testing your buttons.
Testing Tip 1
PayPal recommends starting with one of PayPal’s code samples available at
https://www.paypal.com/ipn under the Code Samples section. There are code samples for the
following development environments.
z ASP/VBScript
z ColdFusion
z ava/JSP
z PERL
z PHP
Testing Tip 2
In your Website Payments button HTML code, add or modify the return and rm variables
as follows, replacing the URL with the URL for your website:
<input type=”hidden” name=”return” value=”http://www.mysite.com/ipn.cgi”>
<input type=”hidden” name=”rm” value=”2”>
Then, with your buyer account, click the Website Payments button and complete the
transaction. Once you get to the PayPal Payment Complete page, you can use your browser's
View Source function to view the values of the posted IPN variables at the bottom of the code.
Testing Tip 3
You can put debugging print statements into your IPN script. PayPal recommends creating a
debugging mode of your script that you can turn on and off by adding or removing variable
comments. Set the return variable in your Website Payments button HTML code to point
to your IPN URL. When you complete the payment, the output of your script’s print
statements will be sent to your browser.
Third-Party IPN Testing Solutions
PayPal also provides links to a number of third-party IPN testing solutions through the PayPal
Developer Network at https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/3p-solutions-
ipntools-outside.