In case that you face any technical issue during the installation process, you can contact the Cardlink e-commerce team at ecommerce_support@cardlink.gr.
Cardlink Payment Gateway allows you to accept payment through various schemes such as Visa, Mastercard, Maestro, American Express, Diners, Discover cards on your website, with or without variable installments. This module aims to offer new payment solutions to Cardlink merchants for their Magento 2.x online store without having web development knowledge. However, for the initial module installation some technical knowledge will be required.
Merchants with e-shops (redirect cases only) will be able to integrate the Cardlink Payment Gateway to their checkout page using the CSS layout that they want. Also, they could choose between redirect or IFRAME option for the payment environment. Once the payment is made, the customer returns to the online store and the order is updated. Once you have completed the requested tests and any changes to your website, you can activate your account and start accepting payments.
You need to manually upload the contents of the .zip file of the module’s latest version to your server’s web root folder that your Magento store is installed. You will first need to extract the file’s contents to a temporary folder. Then, go to the Cardlink\Checkout\Controller\Payment
folder. If you are using previous Magento version 2.2.x, replace the Response.php
file with the contents of file Response-v2.2.php
.
Depending on your hosting provider, you will probably have to be familiar with the process of transferring files using an FTP or SFTP client. If no FTP/SFTP access is provided, use your hosting provider’s administration panel to upload the folders to the folder of your Magento installation.
Using an SSH console, go to your web root folder (or the folder your Magento store is installed) and execute the following commands to enable the extension and execute its installation scripts.
# bin/magento module:enable Cardlink_Checkout
# bin/magento setup:upgrade
# bin/magento setup:di:compile
For security reasons, Web browsers will not send target domain cookies when the referrer website is on another domain and data are POSTed unless the SameSite
option of these cookies is set to the value None
. If you fail to properly configure the required hosting settings, customers returning from the payment gateway will be automatically logged out from their accounts. The following configuration instructions will manipulate all cookies set by your store to allow customer sessions to persist after returning from the payment gateway.
For hosting solutions running the Apache web server software, you will need to add the following lines to your web site’s root .htaccess
file. Make sure the mod_headers
Apache module is installed and active.
<IfModule mod_headers.c>
Header always edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</IfModule>
If your hosting provider uses the Nginx web server instead, you will need to add/edit the following lines of code to your virtual host’s configuration file.
location / {
proxy_cookie_path / "/; SameSite=None; Secure";
…
}
If you are using Plesk and nginx in proxy mode, under Apache & nginx Setting for ... > Additional nginx directives
add only the following line:
proxy_cookie_path / "/; SameSite=None; Secure";
If you are only using Apache, add the following configuration lines in the Additional Apache directives
section on the same page. By default, Plesk has the Apache mod_headers
module installed and active however, verify that this is the case for your Plesk installation.
<IfModule mod_headers.c>
Header always edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</IfModule>
If you do not have full control of your hosting services, or not very confident with such changes, you can try installing the Veriteworks CookieFix extension. Follow the instructions on the extensions Github page and set the SameSite setting to None.
If you are still unsure or unfamiliar with the actions described above, please ask a trained IT person or contact your hosting provider to do them for you.
Stores > Configuration > Sales > Payment Methods
).