1<?php
2
3# Main in Payment Gateway Module
4
5if (!defined("WHMCS")) die("This file cannot be accessed directly");
6
7function mailin_config() {
8
9 $configarray = array(
10 "FriendlyName" => array(
11 "Type" => "System",
12 "Value" => "Mail In Payment"
13 ),
14 "instructions" => array(
15 "FriendlyName" => "Bank Transfer Instructions",
16 "Type" => "textarea",
17 "Rows" => "5",
18 "Value" => "Bank Name:\nPayee Name:\nSort Code:\nAccount Number:",
19 "Description" => "The instructions you want displaying to customers who choose this payment method - the invoice number will be shown underneath the text entered above",
20 ),
21 );
22
23 return $configarray;
24
25}
26
27function mailin_link($params) {
28 $code = '<p>'
29 . nl2br($params['instructions'] ?? '')
30 . '<br />'
31 . Lang::trans('invoicerefnum')
32 . ': '
33 . $params['invoicenum']
34 . '</p>';
35
36 return $code;
37
38}
39