Bank Transfer

Home / Support / Documentation
From WHMCS Documentation
Jump to: navigation, search

Using Mail In Payment as a gateway will give you a text area to enter payment details for the client that will be displayed on the printable invoice. This can be used to enter the bank routing code (sometimes called sortcode) and account numbers and any references required to allocate the payment correctly. As a result the 'forward user to payment gateway' order redirect option will redirect the client to the invoice.

When you receive the payment, you would need to add the transaction manually into WHMCS by using the Add Payment section of the invoice.

Duplication

This module, along with Mail in Payment are open-source meaning it can be easily duplicated if you wish to offer multiple options. Duplicating these modules is a simple process:

  • Create a copy of /modules/gateways/banktransfer.php. The new filename must be all lowercase, alphanumeric characters only and contain no spaces.
  • Open the new file in a text editor such as Notepad and change the following three lines to the name of your new module;
function banktransfer_config() {
"Value" => "Bank Transfer"
function banktransfercopy_link($params) {

For example:

<?php
 
# Bank Transfer Payment Gateway Module

function banktransfercopy_config() {
 
    $configarray = array(
     "FriendlyName" => array(
        "Type" => "System",
        "Value" => "Bank Transfer Copy"
        ),
     "instructions" => array(
        "FriendlyName" => "Bank 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 banktransfercopy_link($params) {
    global $_LANG;
 
    $code = '<p>'.nl2br($params['instructions']).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoiceid'].'</p>';
 
    return $code;
 
}
 
?>
  • The above code would create a new payment gateway module called Bank Transfer Copy.
  • Finally save and upload to your /modules/gateways/ directory.

That's all there is to it, your new module will be available for activation under Setup > Payments > Payment Gateways.

Server Modules
cPanel/WHM - DirectAdmin - Plesk - Helm 3 - Helm 4 - Ensim - InterWorx - WebsitePanel
Lxadmin - Virtualmin Pro - XPanel - HyperVM - FluidVM - SolusVM - Cloudmin - WHMSonic
CentovaCast - SCPanel - MediaCP - GameCP - TCAdmin - Reseller Central - Auto Release

Registrar Modules
Enom - ResellerClub - Nominet - OpenSRS - ResellOne - OnlineNIC - PlanetDomain
TPP Wholesale - TPPInternet - RegisterFly - Stargate - Namecheap - NetEarthOne - Bizcn - InternetBS
12Register - Registercom - DotDNS - WebNIC - Dot.TK - HexoNet - Realtime Register
RRPProxy - ResellerCamp - TransIP - Heart Internet - IPMirror - NetRegistry - OVH
Email

Fraud Modules
MaxMind - VariLogiX FraudCall - Telesign

Gateway Modules
2CheckOut - ACHDirect - Amazon Simple Pay - AsiaPay - Authorize.net - Bank Transfer - BidPay
BluePay - Boleto - CamTech - CashU - CC Avenue - ChronoPay - Cyberbit
Direct Debit - EEECurrency - E-Gold - EMatters - E-Path - eProcessingNetwork - eWAY - eWAY Tokens
eWAY UK - F2B - FastHosts - Finansbank - Garantibank - Gate2Shop - GoCardless
Google CheckOut - IMSP - Inpay - InternetSecure - IP.Pay - Kuveytturk - Liberty Reserve
LinkPoint - Mail In Payment - Merchant Partners - Merchant Warrior - Mollieideal - Moneris - Monerisvault
Moneybookers - My iDEAL - Navigate - Netbilling - Netregistrypay - Nochex - NTPNow
Offline Credit Card - OpenECHO - Optimal Payments - Pagamento - PagSeguro - Payflow Pro - Pay Junction
Paymate_AU_and_NZ - Payment Express - Paymex - Paypal - PayPal_Express_Checkout - PayPal Payments Pro
PayPoint.net (SecPay) - Payson - Payza - Planetauthorize - SagePay - ProtX_VSP_Form - PSIGate
Quantum_Gateway - Quantum_Vault - SagePay - SecPay - SecurePay - SecurePay_AU
StormPay - TrustCommerce - USA ePay - WorldPay - WorldPay_Invisible