Prev | Current Page 732 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

pdf.
Preauthentication Request
When we send a preauthentication request to DataCash, we need to include the following
information:
??? DataCash username (known as the DataCash client)
??? DataCash password
??? A unique transaction reference number
??? The amount of money to be debited
??? The currency used for the transaction (U.S. dollars, British pounds, and so on)
CHAPTER 20 ?–  PROCESSING CREDIT CARD TRANSACTIONS 626
??? The type of transaction (the code pre for preauthentication and the code fulfill for
fulfillment)
??? The credit card number
??? The credit card expiration date
??? The credit card issue date (if applicable to the type of credit card being used)
??? The credit card issue number (if applicable to the type of credit card being used)
The unique transaction reference number must be a number between 6 and 12 digits
long, which we choose to uniquely identify the transaction with an order. Because we can??™t use
a short number, we can??™t just use the order ID values we??™ve been using up until now for orders.
We can, however, use this order ID as the starting point for creating a reference number by
simply adding a high number to it, such as 1,000,000. We can??™t duplicate the reference number
in any future transactions; we must be sure that after a transaction is completed, it won??™t execute
again, which could result in charging the customer twice.


Pages:
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744
online loans for bad credit rating apartamenty przy plaży tanie noclegi nad morzem rewal producent sal zabaw przyczepy campingowe