The "Paynet Direct" extension will only work if the following requirements are met:
The web server needs to be configured in a special way. The following list reveals the most important issues that have to be taken care of.
The web server on which eZ Publish is running must be able to access the Paynet server using HTTPS on port 8210. In particular, eZ Publish will attempt to access the following address: https://www.paynet.no:8210/if2. This means that the outer firewall must be opened, the local firewall (which is running on the web server itself, if any) must be configured, and so on.
The "telnet" command line application (available on both Linux/UNIX and Windows systems) can be used to test whether the web server (the machine running the eZ Publish solution) has access to the paynet service or not. Instructions:
telnet paynet.no 8210
A connection should be established. On Linux/UNIX systems, this is indicated with a line saying "connected to paynet.no.". On Windows, an empty command window will be displayed. GET / HTTP/1.0
There is a space between the first slash and HTTP. Hereafter press enter a couple of times. If everything works as described in the list above, it means that the web server running eZ Publish has proper access to the Paynet server. If something goes wrong or if no response is produced, a firewall somewhere between the web server running eZ Publish and the Paynet server is most likely blocking the traffic. This or these firewalls will need to be reconfigured. If you do not know how to do this or do not have access, you will have to consult either the local system administrator or the internet service provider.
The "Paynet Direct" extension uses the "Client URL Library" (CURL) functions, which provide solutions for communication over a range of protocols (in particular HTTPS). This means that the CURL extension for PHP must be installed and enabled. Furthermore, the PHP version should be at least 4.3.2 if not higher. The installation instructions are available within the documentation page of CURL. The following text shows two methods that can be used to check if CURL is installed or not.
<?php phpinfo(); ?>
The CURL extension for PHP (mentioned above) will only encrypt communication between the web server running eZ Publish and the Paynet server. However, communication between the customers and the web server running eZ Publish should also be encrypted. Otherwise, the solution will be open and thus extremely insecure. Having SSL support on the web server running eZ Publish is highly recommend because it will encrypt the communication between the customers and eZ Publish. This means that it should be possible to access an eZ Publish page using a secure HTTP (HTTPS) connection. Please refer to the documentation of Apache SSL for information about installation, configuration, etc. The following illustration shows an overview of the visitor, the web server running eZ Publish and the Paynet server.
Payment traffic and encryption
To test whether SSL is working or not, attempt to access an eZ Publish page using the HTTPS protocol. This can be done by instructing a browser to access an URL that is similar to the following:
https://www.example.com/content/view/full/2
If everything works, the expected eZ Publish generated page should be visible in the browser.
The Paynet service can only be used by authorized/registered Paynet merchants. In other words, you will have to sign up and become Paynet merchant. More information about becoming a Paynet merchant can be found at the following address: http://www.paynet.no/index.php/paynet/sign_up/merchant_application.html. When setting up the eZ Publish Paynet extension, make sure that you have the following information available:
Please note that the Paynet extension can be tested using a special demo key-certificate. In other words, you do not need an actual Paynet account to test the solution. Please refer to the "Testing" section for more information about testing and the demo key-certificate.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.