Administration
  Home arrow Administration arrow Page 3 - Script-Based Credit Card Interfaces
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Script-Based Credit Card Interfaces
By: Stephen Junker
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2001-03-14

    Table of Contents:
  • Script-Based Credit Card Interfaces
  • A Word About Security
  • Testing
  • PHP and CyberCash
  • Summary

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    FaxWave - Free Trial.
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Script-Based Credit Card Interfaces - Testing
    (Page 3 of 5 )

    Before setting up your transaction system and immediately processing live transactions, some testing of the system is prudent, for your benefit and your customers. Fortunately, Authorize.net provides an excellent platform for transaction testing, so your system can go live with minimal white-knuckled fear (or excitement) of incorrectly charging your customers credit cards. (Note: if you’re not sweating a little bit the first time you deploy this system in a live environment, you’re not taking the potential problems seriously enough)

    The first thing you can do to test an account is to simply put the account into "test mode" on the account control panel. This will cause all transactions to be processed as tests, and no one will be charged a penny. When processing transactions in test mode, you can use the credit card number "4222222222222" (that’s twelve 2’s, in case you’re wondering), the system will return a response code corresponding to the whole dollar amount of the transaction. In other words, using the special credit card number, a transaction for $6.00 will return error code 6 from the system, "Invalid Credit Card Number". This feature affords you the opportunity to test specific logic for handling different responses from the system.

    If you don’t want to put the whole account into test mode, you can simply send a field with your transaction form with a name of "x_Test_Request" and a value of "TRUE". This places the system test mode for a single transaction, and causes the system to behave, for the purposes of that transaction, as though the account was in test mode. This might be useful if you need to make upgrades or improvements to a live account, and wanted to be able to process test and live transactions simultaneously.

    Finally, if you’re uncomfortable testing with your actual account, or you don’t even have an account, or you’re just doing this for fun, you can send your transactions with a x_Login value of "testing -- an account provided by Authorize.net specifically for developers to use to test with the system.

    I cannot stress enough the necessity of adequate testing for these transaction-processing systems. With electronic systems, it’s easy to lose sight of the fact that you’re dealing with real people’s real money. Note that it might take a while for you to prove the difference between an honest mistake and an attempt at credit card fraud. Don’t give the skeptics more reasons to not believe in the promise of eCommerce. . . test your systems adequately.

    More Administration Articles
    More By Stephen Junker


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway