php';
require_once BUSINESS_DIR . 'datacash_request.php';
Testing DataCash Integration
Now that we have all this in place, it??™s important to test it with a few orders. We can do this
easily by creating a customer with those magic credit card details. As mentioned earlier in
this chapter, DataCash supplies these numbers for testing purposes and to obtain specific
responses from DataCash. A sample of these numbers is shown in Table 20-2. A full list is
available in the Developer??™s Area of the DataCash web site, under the Magic Card Numbers
section.
Table 20-2. DataCash Credit Card Test Numbers
Card Type Card Number Return Code Description Sample Message
Switch 4936000000000000001 1 Authorizes with a random AUTH CODE ??????
authorization code
4936000000000000019 7 Declines the transaction DECLINED
6333000000000005 1 Authorizes with a random AUTH CODE ??????
authorization code
6333000000000013 7 Declines the transaction DECLINED
6333000000123450 1 Authorizes with a random AUTH CODE ??????
authorization code
Visa 4242424242424242 7 Declines the transaction DECLINED
4444333322221111 1 Authorizes with a random AUTH CODE ??????
authorization code
4546389010000131 1 Authorizes with a random AUTH CODE ??????
authorization code
At this moment, we can experiment with the new fully featured e-commerce web site by
placing orders with the test credit card numbers, checking the e-mails the web site sends, and
finding out how the site reacts in certain situations, such as how it logs errors, how orders are
administered using the orders administration page, and so on.
Pages:
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757