Developer's Guide

Creating a Simple Transaction Request
Sale Transaction Example
3
18 Website Payments Pro Developer’s Guide
Sale Transaction Example
In addition to the connection parameters and the required parameters in Table 3.2, each
transaction type (TRXTYPE) has additional parameter requirements and can use a number
of optional ones as well.
For example, to perform a Direct Payment credit card Sale transaction, you are required
to pass the following parameters:
z ACCT - The payers credit card number
z AMT - The amount of the sale
z EXPDATE - The expiry date of the credit card
Typical Sale Transaction PARMLIST
The following is a typical PARMLIST string passed in a Sale transaction.
"TRXTYPE=S&TENDER=C&USER=SuperMerchant&PWD=SuperUserPassword&PARTNER=PayPal
UK&ACCT=5105105105105100&EXPDATE=1209&AMT=99.06&COMMENT1=Reservation&FIRSTN
AME=John&LASTNAME=Jones&STREET=123 Main St.&CITY=San
Jose&STATE=CA&ZIP=123451234&COUNTRY=US&CVV2=123&CLIENTIP=0.0.0.0"
Note that, besides the required Sale transaction parameters, this string includes other typical
Website Payments Pro Payflow Edition parameters. These parameters are described in
Chapter 4, “Performing Direct Payment Credit Card Transactions”. and in Chapter 6, “PayPal
Express Checkout Transaction Processing”.
PWD The 6 to 32-character password that you defined while
registering for the account.
The examples in this document use
PWD=SuperUserPassword.
This value is case-sensitive.
Yes Alphanumeric 32
TENDER The tender type (method of payment). Values are:
z C = Credit card for Direct Payment transactions
z P = PayPal for PayPal Express Checkout transactions
Yes Alpha 1
TRXTYPE A single character indicating the type of transaction to
perform. Website Payments Pro supports the following
values:
S = Sale transaction
A = Authorisation
C = Credit
D = Delayed Capture
V = Void
Yes Alpha 1
T
ABLE 3.2 Required transaction parameters(Continued)
Parameter Description Required Type
Max.
Length