- Introduction
- Prerequisites
- Rebranding
- Installing and configuring the module
- License
This Opencart module provides an easy method to integrate with the payment gateway.
- Supports OpenCart versions: 3.X
- 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.
- Update the following variables located in
httpdocs/admin/language/en-gb/extension/payment/payment_network.phpreplacingPayment Networkwith your brand name:- Line 3:
$_['heading_title'] = 'Payment Network'; - Line 6:
$_['text_edit'] = "Edit Payment Network Settings"; - Line 8:
$_['text_success'] = 'Success: You have modified Payment Network account details!'; - Line 13:
$_['text_merchantid'] = "Enter the merchant ID provided by Payment Network MMS, use 100001 for testing"; - Line 14:
$_['text_merchantsecret'] = "Enter the merchant secret provided by Payment Network MMS, use Circle4Take40Idea for testing"; - Line 27:
$_['entry_status'] = 'Payment Network On/Off:'; - You'll also need to change the web address located on line 10, to match that which we provide.
- Line 3:
- Update the following variables located in
httpdocs/catalog/controller/extension/payment/payment_network.phpreplacing the web address to match that which we provide.- Line 17:
const API_ENDPOINT_DIRECT = 'https://gateway.example.com/direct/';
- Line 17:
- Update the following variables located in
httpdocs/catalog/language/en-gb/extension/payment/payment_network.phpreplacingPayment Networkand any web addresses, to match your brand and that which we provide, respectively.- Line 5:
$_['form_hosted_url'] = 'https://gateway.example.com/hosted/'; - Line 6:
$_['form_hosted_modal_url'] = 'https://gateway.example.com/hosted/modal'; - Line 7:
$_['form_direct_url'] = 'https://gateway.example.com/direct/'; - Line 10:
$_['text_title'] = 'Credit Card / Debit Card (Payment Network)'; - Line 11:
$_['text_response'] = 'Response from Payment Network:';
- Line 5:
- Update references to
Payment Networkin the filehttpdocs/catalog/view/theme/default/template/extension/payment/payment_network_hosted.twig, to your brand- Line 2:
<p>You will be redirected to the Payment Network Payment Gateway to complete payment.</p>
- Line 2:
- Update references to
Payment Networkin the filehttpdocs/catalog/view/theme/default/template/extension/payment/payment_network_iframe.twig, to your brand- Line 4:
<p class="paymentgatewaymoduleform-message">You will be presented with the Payment Network Payment Gateway to complete payment.</p>
- Line 4:
- Change the logo in
httpdocs/admin/view/image/payment/to match your brand - When downloading as a zip file, you can right-click and rename to remove the
Unbrandedtext from the filename.
- Copy the contents of the httpdocs directory into the root OpenCart directory
- Navigate to the Extensions dropdown -> Extensions -> Payment methods -> PaymentNetwork and click 'Activate'
- Navigate to the Extensions dropdown -> Extensions -> Payment methods -> PaymentNetwork and hit the 'Edit' button
- Enter your MerchantID / Secretkey and update the customer/country code
- Select what type of integration you would like to use
- Set what status you would like to update an order to once paid
- Set the Enabled option to true
- Click 'Save Changes'
MIT