Add Cash payment gateway in WHMCS

Very Simple Solution By Code.top10idea.com

 

  •  Connect Your FTP Account
  • Open your WHMCS Source Code Files
  • Download banktransfer.php file in to your local PC  [PATH :  /modules/gateways/banktransfer.php ]
  • Open banktransfer.php in to text editor / Dreamweaver Software
  • Save as file as different name [cashtransfer.php]
  • open cashtransfer.php file in to text editor
  • change the following three lines to the cashtransfer.php page

——————————————————————–
function cashtransfer_config() {

“Value” => “cash Transfer”

function cashtransfer_link($params) {
——————————————————————–

Whole Coding

<?php

# Cash Transfer Payment Gateway Module

function cashtransfer_config() {

$configarray = array(
“FriendlyName” => array(
“Type” => “System”,
“Value” => “Cash Transfer”
),
“instructions” => array(
“FriendlyName” => “Cash Transfer Instructions”,
“Type” => “textarea”,
“Rows” => “5″,
“Value” => “Bank Name:\nPayee Name:\nSort Code:\nAccount Number:”,
“Description” => “The instructions you want displaying to customers who choose this payment method – the invoice number will be shown underneath the text entered above”,
),
);

return $configarray;

}

function cashtransfer_link($params) {
global $_LANG;

$code = ‘<p>’.nl2br($params['instructions']).’<br />’.$_LANG['invoicerefnum'].’: ‘.$params['invoiceid'].’</p>’;

return $code;

}

?>

—————————————————————-
face any problem then contact www.reseller99.com / live chat option /  Chat with expert.

About the Author

avatar