Concept
Description
We define here a simplified interface to Electronic Payment, that
performs the following functions:
- accepts data from the calling script in a standardized format
- checks the input fields for formatting errors and invalid values
- submit a valid transaction request
- return the results in a standardized format
- log results and errors in the processing
Given the dissimilar implementation from gateway to gateway, some
functions will not be available, some will have a limited functionality.
Every module will have its own documentation and examples of use.
The main module will provide some basic routines that will be shared
by all the modules loaded subsequently. These routines are:
- _VerifyNameData()
- _VerifyCreditCardData()
- _VerifyOrderNumber()
- _debug_log()
- _TrimSpaces()
- _GetTime()
- _escape()
We know that some of these are available in the perl standard modules,
but we choose to make this interface as independent as possible
from external modules. All the modules use the CGI::Carp package.
|