Developer's Guide
Table Of Contents
Performing Direct Payment Credit Card Transactions
Submitting Authorisation/Delayed Capture Transactions
4
34 Website Payments Pro Developer’s Guide
Step 1 Submit the Initial transaction (Authorisation in this example)
This example uses an Authorisation transaction for the full amount of a purchase of $100.
EXAMPLE 4.8 Authorisation for the full amount of the purchase
"TRXTYPE=A&TENDER=C&PWD=SuperUserPassword&PARTNER=PayPalUK&VENDOR=SuperMerc
hant&USER=SuperMerchant&ACCT=5555555555554444&EXPDATE=0308&AMT=100.00&INVNU
M=123456789&FIRSTNAME=John&LASTNAME=Jones&STREET=5199 MAPLE&ZIP=94588"
Note the value of the PNREF in the response.
EXAMPLE 4.9 Response to the Authorisation
RESULT=0&PNR EF=EFHP0D426A51&RESPMSG=Approved&AVSADDR=N&AVSZIP=Y&CVV2MATCH=X
&PPREF=6FS950632E172331R&CORRELATIONID=3c1a7c1c411a
Step 2 Capture the authorised funds for a partial delivery of $66
When you deliver the first $66 worth of product, you use a Delayed Capture transaction to
collect the $66. Set ORIGID to the value of PNREF in the original Authorisation and set
CAPTURECOMPLETE to N.
EXAMPLE 4.10 Delayed Capture with CAPTURECOMPLETE=N
"TRXTYPE=D&TENDER=C&PWD=SuperUserPassword&PARTNER=PayPalUK&VENDOR=SuperMerc
hant&USER=SuperMerchant&C APTURECOMPLETE=N&ORIGID=EFHP0 D426A51&AMT=66.00"
RESULT=0&PNREF=VXYZ01234568&AUTHCODE=25TEST&AVSADDR=Y&AVSZIP=N&CORRELATIONI
D=2dc60e253492e
Step 3 Capture the $34 balance for the rest of the consignment
Once you have sent the remainder of the product, you can collect the remaining $34 in a
second Delayed Capture transaction, setting CAPTURECOMPLETE to Y.
EXAMPLE 4.11 Delayed Capture with CAPTURECOMPLETE=Y
"TRXTYPE=D&TENDER=C&PWD=SuperUserPassword&PARTNER=PayPalUK&VENDOR=SuperMerc
hant&USER=SuperMerchant&C APTURECOMPLETE=Y&ORIGID=EFHP0 D426A51&AMT=34.00"
RESULT=0&PNREF=VXYZ01234569&AUTHCODE=25TEST&AVSADDR=Y&AVSZIP=N&CORRELATIONI
D=2dc60e253493e
Delayed Capture Transaction: Capturing Transactions for Higher Amounts
You can perform a Delayed Capture transaction for an amount higher than the original
Authorisation amount, however, you are charged for an extra transaction. In addition, the
cardholder’s open-to-buy is reduced by the sum of the original Authorisation-only amount and
the final Delayed Capture amount.