The Scripts
The following files are provided for your use.
CCsample.html CCsample.pl CCtrans.log | CCsample.html contains a basic form which prompts a user for the required credit card information. The form action calls CCsample.pl which processes the transaction and returns the result of the transaction. CCsample.pl logs each transaction attempt and result to CCtrans.log. |
If you would prefer to develop your own credit card processing scripts in C, Primus can provide you with the appropriate libraries and some sample code. Please contact Primus for further information on how to proceed under this scenario. |
Once your terminal identifier has been assigned to you, Primus will place a copy of the above files in your account in the following locations.
- /magma/users/u?/userid/ logs/CCtrans.log
- /magma/users/u?/userid/ secure_html/cgi-bin/CCsample.pl
- /magma/users/u?/userid/ secure_html/CCsample.html
(where "/magma/users/u?/userid" is the path to your home directory on the server)
Those files should already be configured for your VWS when Magma installs them for you. You should be able to do a test transaction using the following URL:
https://mediaX.magma.ca/www.yourdomainname.com/CCsample.html
*Note* The above link is an example. To make this link work correctly please insert your domain name in the area outlined.
The complete script package can be found here:
Credit Card Validator (6.66 kB)