- Introduction
- Prerequisites
- Rebranding
- Installing the payment module
- License
This X-Cart module provides an easy method to integrate with the payment gateway.
- The httpdocs directory contains the files that need to be uploaded to the root of your X-Cart installation
- Supports X-Cart versions: 5.3+
- The module requires the following prerequisites to be met in order to function correctly:
- The 'bcmath' php extension module: https://www.php.net/manual/en/book.bc.php
Please note that we can only offer support for the module itself. While every effort has been made to ensure the payment module is complete and bug free, we cannot guarantee normal functionality if unsupported changes are made.
To rebrand this module, complete the following steps:
1.In file httpdocs/classes/XLite/Module/PaymentNetwork/Model/Payment/Processor/PaymentNetwork.php change the following:
- Line 4: * Copyright (c) 2016-present PaymentNetwork. All rights reserved. change the copyright to your brand name
- Line 17: const GATEWAYURL = "https://commerce-api.handpoint.com/hosted/"; change the URL to that which we supply
-
In file
httpdocs/classes/XLite/Module/PaymentNetwork/PaymentNetwork/Main.phpchange the following:-
Line 23:
* @author PaymentNetwork Ltd <support@example.com>change to your brand and support email -
Line 24:
* @copyright Copyright (c) 2016-present PaymentNetwork Ltd <support@example.com>. All rights reservedchange to your brand and support email -
Line 39:
return 'PaymentNetwork';change PaymentNetwork to your brand name -
Line 48:
return 'PaymentNetwork Hosted';change PaymentNetwork to your brand name -
Line 75-76:
return 'Adds the ability to take card payments for your online store ' 'via PaymentNetwork Hosted Payment Gateway.';change PaymentNetwork to your brand name
-
-
In file
httpdocs/classes/XLite/Module/PaymentNetwork/PaymentNetwork/install.yamlchange the following:- Line 7:
name: PaymentNetworkchange PaymentNetwork to your brand name - Line 14:
value: https://commerce-api.handpoint.com/hosted/change the URL to that which we supply
- Line 7:
-
Finally replace the files:
httpdocs/classes/XLite/Module/PaymentNetwork/PaymentNetwork/icon.pngandhttpdocs/skins/admin/modules/PaymentNetwork/PaymentNetwork/method_icon.pngwith your own brand logos
-
When downloading as a zip file, you can right-click and rename to remove the
Unbrandedtext from the filename
- Copy and paste the contents of httpdocs to your root X-Cart
- Log in to your admin panel and navigate to System Settings -> Cache Management and click 'redeploy store'
- Navigate to modules and locate PaymentNetwork and click the 'install' button, the store will redeploy again automatically
- Click 'settings' under the PaymentNetwork module you just installed
- Under Online Payments click 'Add Payment Method'. Locate and add PaymentNetwork
- Configure the PaymentNetwork payment gateway and save. Now you should be able to see and checkout using the PaymentNetwork payment gateway
MIT