The JavaScript found in the CC.Validation template is used to check the validity of a credit card before the Transaction Form is submitted to the Internet bank. The advantage of using this option is to avoid logging on to the Internet bank with an invalid card number or expiration date. This JavaScript performs a first level validation before the form is submitted.
This option is activated when the PreCCcheck flag (in the CCInfo file) is set to 1.
This JavaScript requires that the form has the Expiration Month and the Card Type input entries as list boxes. If you need a different implementation, edit and modify the script as necessary.
NOTE |
The Card Type is not required by Merchant Trust. |
This script is located in the w3HTML file in the www account.