-
Notifications
You must be signed in to change notification settings - Fork 0
/
nopayment.php
38 lines (29 loc) · 863 Bytes
/
nopayment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
# No Payment Required Payment Gateway Module
if (!defined("WHMCS")) die("This file cannot be accessed directly");
function nopayment_config() {
$configarray = array(
"FriendlyName" => array(
"Type" => "System",
"Value" => "No Payment Required"
),
"instructions" => array(
"FriendlyName" => "Instructions",
"Type" => "textarea",
"Rows" => "5",
"Value" => "No payment is required for this order.",
"Description" => "The instructions displayed to customers who choose this payment method.",
),
);
return $configarray;
}
function nopayment_link($params) {
$code = '<p>'
. nl2br($params['instructions'])
. '<br />'
. Lang::trans('invoicerefnum')
. ': '
. $params['invoicenum']
. '</p>';
return $code;
}