Developer's Guide

Website Payments Pro Developer’s Guide 35
Performing Direct Payment Credit Card Transactions
Submitting Credit Transactions
4
Delayed Capture Transaction: Error Handling and Retransmittal
If an error occurs while processing a Delayed Capture transaction, it is safe to retry the capture
with values that allow the server to successfully process it. Conversely, if a capture for a
previous Authorisation succeeds, subsequent attempts to capture it again will return an error.
Submitting Credit Transactions
The Credit transaction (TRXTYPE=C) refunds the specified amount to the cardholder.
Required Credit Transaction Parameters
Credit transactions are permitted only against existing Sale and Delayed Capture transactions.
To submit a Credit transaction, you must pass the following parameter:
ORIGID
Set the value of ORIGID to the PNREF value returned for the original transaction. (PNREF is
displayed as the Transaction ID in PayPal Manager reports. For details on PNREF, see
Chapter 8, “Responses to Transaction Requests.”). If you do not specify an amount, then the
amount of the original transaction is credited to the cardholder.
Fields Copied from the Original Transaction into the Credit Transaction
The following fields are copied from the original transaction into the Credit transaction (if
they exist in the original transaction). If you provide a new value for any of these parameters
when submitting the Credit transaction, then the new value is used. (Exceptions are ACCT and
EXPDATE. These parameters retain their original values.)
NOTE: The TAXAMT and FREIGHTAMT parameters are not copied for referenced credits.
Credit Transaction Parameter Strings
This is an example Credit transaction string.
"TRXTYPE=C&TENDER=C&PARTNER=PayPalUK&VENDOR=SuperMerchant&USER=SuperMerchan
t&PWD=SuperUserPassword&ORIGID=EFHP0D426A62"
ACCT AMT CITY COMMENT1
CLIENTIP COMMENT2 COUNTRY CUSTCODE
EMAIL EXPDATE FIRSTNAME INVNUM
LASTNAME SHIPTOCITY SHIPTOCOUNTRY SHIPTOFIRSTNAME
SHIPTOLASTNAME SHIPTOSTATE SHIPTOSTREET SHIPTOZIP
STATE STREET PHONENUM ZIP