Difference between revisions of "Bank Transfer"
(→Duplication) |
(→Adding the Bank Transfer Payment Gateway) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Using | + | == About this Module == |
+ | |||
+ | Using Bank Transfer as a gateway will give you a text area to enter payment details for the client that will be displayed on the Client Area 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 [[Transactions|Add Payment]] section of the invoice. | When you receive the payment, you would need to add the transaction manually into WHMCS by using the [[Transactions|Add Payment]] section of the invoice. | ||
+ | <table class="table" style="text-align:center;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;width:100%;"> | ||
+ | <tr> | ||
+ | <th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Type</th> | ||
+ | <th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">One Time</th> | ||
+ | <th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Recurring</th> | ||
+ | <th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Refunds</th> | ||
+ | <th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">3D Secure</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="border:1px #AAA solid;padding:0.2em;" colspan="5">N/A</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | == Adding the Bank Transfer Payment Gateway == | ||
+ | |||
+ | To set up the payment gateway in WHMCS: | ||
+ | |||
+ | # Go to the appropriate location for your version of WHMCS: | ||
+ | #* For WHMCS 8.0 and later, go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > Apps & Integrations''' or '''Addons > [[Apps and Integrations|Apps & Integrations]]'''. | ||
+ | #* For WHMCS 7.10 and earlier, go to '''Setup > Products/Services > [[Payment Gateways]]''' and choose '''All Payment Gateways'''. | ||
+ | # Click '''Bank Transfer'''. | ||
+ | # Check '''Show on Order Form''' to display this payment method in the Client Area during checkout. | ||
+ | # Configure a display name and the bank transfer instructions. | ||
+ | # Click '''Save Changes'''. | ||
− | == | + | === Test Mode === |
− | |||
− | + | This payment gateway module does not include test mode. | |
− | |||
− | |||
− | |||
− | |||
− | For example: | + | == Module Duplication == |
− | <source lang="php"><?php | + | |
+ | This module and the [[Mail In Payment]] module, are open-source meaning it can be easily duplicated if you wish to offer multiple options. | ||
+ | |||
+ | To duplicate a module: | ||
+ | |||
+ | # Create a copy of <tt>/modules/gateways/banktransfer.php</tt>. The new filename must be all lowercase, alphanumeric characters only, and contain no spaces. | ||
+ | # Open the new file in a text editor and change the following three lines to the name of your new module:<source lang="php"> function banktransfer_config() { | ||
+ | "Value" => "Bank Transfer" | ||
+ | function banktransfer_link($params) {</source>For example:<source lang="php"><?php | ||
# Bank Transfer Payment Gateway Module | # Bank Transfer Payment Gateway Module | ||
Line 46: | Line 75: | ||
} | } | ||
− | ?></source> | + | ?></source>The above code would create a new '''Bank Transfer Copy''' payment gateway module. |
− | + | # Save the file as <tt>banktrasnfercopy.php</tt> (the file name must match the function name). | |
− | + | # Upload the file to your <tt>/modules/gateways/</tt> directory. | |
+ | |||
+ | == Troubleshooting == | ||
− | + | ''N/A'' | |
{{modules}} | {{modules}} |
Latest revision as of 19:28, 28 September 2022
Contents
About this Module
Using Bank Transfer as a gateway will give you a text area to enter payment details for the client that will be displayed on the Client Area 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.
Type | One Time | Recurring | Refunds | 3D Secure |
---|---|---|---|---|
N/A |
Adding the Bank Transfer Payment Gateway
To set up the payment gateway in WHMCS:
- Go to the appropriate location for your version of WHMCS:
- For WHMCS 8.0 and later, go to Configuration () > Apps & Integrations or Addons > Apps & Integrations.
- For WHMCS 7.10 and earlier, go to Setup > Products/Services > Payment Gateways and choose All Payment Gateways.
- Click Bank Transfer.
- Check Show on Order Form to display this payment method in the Client Area during checkout.
- Configure a display name and the bank transfer instructions.
- Click Save Changes.
Test Mode
This payment gateway module does not include test mode.
Module Duplication
This module and the Mail In Payment module, are open-source meaning it can be easily duplicated if you wish to offer multiple options.
To duplicate a module:
- 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 and change the following three lines to the name of your new module:For example:
function banktransfer_config() { "Value" => "Bank Transfer" function banktransfer_link($params) {
The above code would create a new Bank Transfer Copy payment gateway module.<?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; } ?>
- Save the file as banktrasnfercopy.php (the file name must match the function name).
- Upload the file to your /modules/gateways/ directory.
Troubleshooting
N/A
Server Modules
cPanel/WHM - DirectAdmin - Plesk - Helm 3 - Helm 4 - Ensim - InterWorx - WebsitePanel - Cloudmin
Lxadmin - Virtualmin Pro - XPanel - HyperVM - SolusVM - Cloudmin - WHMSonic - VPS.Net
CentovaCast - SCPanel - MediaCP - GameCP - TCAdmin - Reseller Central - Auto Release - Heart Internet
Registrar Modules
Enom - ResellerClub - Nominet - OpenSRS - ResellOne - OnlineNIC - PlanetDomain - Affordable Domains
TPP Wholesale - TPPInternet - Stargate - Namecheap - NetEarthOne - Bizcn - InternetBS - GMO Internet
12Register - Registercom - DotDNS - WebNIC - Dot.TK - HexoNet - Realtime Register - Registereu
RRPProxy - ResellerCamp - TransIP - Heart Internet - IPMirror - NetRegistry - OVH - VentraIP Wholesale
Email - 101Domain
Fraud Modules
MaxMind - VariLogiX FraudCall - Telesign
Gateway Modules
2CheckOut - AsiaPay - Auth.net Echeck - Authorize.net - Authorize.net CIM - Bank Transfer - BidPay
BluePay - BluePay Echeck - BluePay Remote - Boleto - CashU - CC Avenue - ChronoPay - Direct Debit
EMatters - E-Path - eProcessingNetwork - eWAY Tokens - F2B - Finansbank - GarantiBank - Gate2Shop
Inpay - InternetSecure - IP.Pay - Kuveytturk - Modulo Moip - Mail In Payment - Merchant Partners
Merchant Warrior - IDEALMollie - Moneris - Moneris Vault - Skrill 1-Tap - NaviGate - NETbilling
Netregistry Pay - NoChex - Offline Credit Card - Optimal Payments - PagSeguro - Payflow Pro - Pay Junction
Paymate AU and NZ - Payment Express - PayPal - PayPal Card Payments - PayPal Express Checkout
PayPal Payments - PayPal Payments Pro - PayPoint.net (SecPay) - Payson - Planet Authorize - ProtX VSP Form
PSIGate - Quantum Gateway - Quantum Vault - SagePay - SagePay Tokens v2 - SecurePay
SecurePay AU - Secure Trading - TrustCommerce - USA ePay - WorldPay - WorldPay Invisible