PayPal Gateway - 2014 Guida Utente Pagina 77

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 261
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 76
Gateway Developer Guide and Reference 07 January 2014 77
Submitting Credit Card Transactions
Submitting Reference Transactions (Tokenization)
6
Example Reference Transaction
In this example, you authorize an amount of $100 for a shipment and charge $66 for the first
partial shipment using a normal delayed capture. You charge the $34 for the final part of the
shipment using a reference transaction to draw credit card and shipping address information
from the initial authorization transaction.
This example procedure creates a reference transaction:
1. Submit the initial transaction, such as an authorization.
You use an authorization transaction for the full amount of the purchase of $100 as shown
in this transaction request:
TRXTYPE=A&TENDER=C&PWD=x1y2z3&PARTNER=PayPal&VENDOR=SuperMerchant
&USER=SuperMerchant&ACCT=5555555555554444&EXPDATE=1215&AMT=100.00
&INVNUM=123456789&BILLTOSTREET=5199 MAPLE&BILLTOZIP=94588
Note the value of the PNREF in the response:
RESULT=0&PNREF=VXYZ01234567&RESPMSG=APPROVED&AUTHCODE=123456&AVSADDR=Y
&AVSZIP=N
NOTE: The PNREF returned in the original transaction is valid in reference transactions for
12 months.
If the original transaction was processed by the PayPal processor, pass either the
PPREF or PNREF of the original transaction in the ORIGID parameter.
2. Capture the authorized funds for a partial shipment of $66.
When you deliver the first $66 worth of product, you use a normal delayed capture
transaction to collect the $66. Set ORIGID to the value of PNREF in the original
authorization as in this transaction request.
TRXTYPE=D&PWD=x1y2z3&PARTNER=PayPal&VENDOR=SuperMerchant
&USER=SuperMerchant&ORIGID=VXYZ01234567&AMT=66.00
The following is the response:
RESULT=0&PNREF=VXYZ01234568&AUTHCODE=25TEST&AVSADDR=Y&AVSZIP=N
NOTE: The TENDER parameter is not required in this step. The TENDER of the capture will
be the same as that of the original transaction.
BILLTOFIRSTNAME BILLTOZIP
BILLTOMIDDLENAME BILLTOCOUNTRY
BILLTOLASTNAME SWIPE
BILLTOSTREET
Vedere la pagina 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 260 261

Commenti su questo manuale

Nessun commento