2012
Table Of Contents
- Sandbox User Guide
- Contents
- Preface
- Overview to the PayPal Sandbox
- Accessing the PayPal Sandbox
- Setting Up Test Accounts
- Testing PayPal Website Features
- Testing an Express Checkout Integration
- Sandbox Test Tools
- Testing Error Conditions
- Testing Payment Review
- Technical Support
- Revision History
Sandbox User Guide April 2012 29
Testing PayPal Website Features
Handling Pending Transactions
4
Handling Pending Transactions
Transactions typically are credited to your PayPal account instantly after the buyer completes
the transaction; however, a buyer might select a payment method that is not completed
instantly. In these cases, the transaction goes into a pending state and the transaction is
completed after a couple of days. The following sections describe how to set up pending status
transactions that can either be completed or canceled.
Creating a Pending Transaction
1. Log in to https://developer.paypal.com, click the Test Accounts tab, select a buyer (personal
or premier) test account, and click Enter Sandbox Test Site.
2. Log in to your test buyer account and create a transaction, such as one created using a Buy
Now button or by passing parameters in the URL as in the following example:
https://www.sandbox.paypal.com/
us/cgi-bin/webscr?cmd=_xclick&business=seller@domain.com
3. On the Review Purchase Page click on the link Change under funding method.
4. Select eCheck as the funding method and click Continue.
5. Click Pay to create the transaction.
To verify the creation of the transaction, see “Verifying a Test Payment” on page 28.
Completing or Canceling a Pending Transaction
1. In the buyer’s transactions log, click the Details link (in the Details column).
2. In the Transaction Detail window, there are two links to simulate actual bank clearing.
These links appear only in the Sandbox, as shown below:
– Clear Transaction: Click to complete the transaction.
– Fail Transaction: Click to cancel the transaction.