run:R W Run
DIR
2025-05-14 17:31:16
R W Run
DIR
2026-02-22 14:28:22
R W Run
4.34 KB
2026-04-08 19:25:21
R W Run
562 By
2026-04-08 19:25:22
R W Run
1.43 KB
2026-04-08 19:25:21
R W Run
2.6 KB
2026-04-08 19:25:22
R W Run
446 By
2026-04-08 19:25:21
R W Run
1.5 KB
2026-04-08 19:25:22
R W Run
1.03 KB
2026-04-08 19:25:21
R W Run
5.83 KB
2026-04-08 19:25:22
R W Run
4.83 KB
2026-04-08 19:25:21
R W Run
6.43 KB
2026-04-08 19:25:21
R W Run
2.58 KB
2026-04-08 19:25:22
R W Run
564 By
2026-04-08 19:25:21
R W Run
316 By
2026-04-08 19:25:21
R W Run
27.32 KB
2026-04-08 19:25:21
R W Run
27.81 KB
2026-04-08 19:25:20
R W Run
2.06 KB
2026-04-08 19:25:19
R W Run
484 By
2026-04-08 19:25:22
R W Run
1.75 KB
2026-04-08 19:25:22
R W Run
4.41 KB
2026-04-08 19:25:22
R W Run
2.55 KB
2026-04-08 19:25:22
R W Run
3.33 KB
2026-04-08 19:25:22
R W Run
762 By
2026-04-08 19:25:20
R W Run
5.03 KB
2026-04-08 19:25:20
R W Run
75 By
2026-04-08 19:25:21
R W Run
2.1 KB
2026-04-08 19:25:23
R W Run
1.17 KB
2026-04-08 19:25:22
R W Run
382 By
2026-04-08 19:25:22
R W Run
1.97 KB
2026-04-08 19:25:22
R W Run
1.4 KB
2026-04-08 19:25:20
R W Run
2.11 KB
2026-04-08 19:25:20
R W Run
1.24 KB
2026-04-08 19:25:23
R W Run
2.93 KB
2026-04-08 19:25:21
R W Run
error_log
📄gateway.php
1<?php
2use WHMCS\Database\Capsule;
3
4// Hide the Checkout Stripe gateway in the cart for users in group 1
5function cart_gateway_removal_for_group1($vars) {
6 if ($vars['templatefile'] == 'viewcart') {
7 $gateways = $vars['gateways'];
8
9 $client = Capsule::table('tblclients')->where('id', $_SESSION["uid"])->first();
10 $groupid = $client->groupid;
11
12 // If the client is in group 1, remove Checkout Stripe gateway
13 if ($groupid === 1) {
14 unset($gateways['stripeGateway']);
15 }
16
17 return array("gateways" => $gateways);
18 }
19}
20add_hook("ClientAreaPageCart", 1, "cart_gateway_removal_for_group1");
21
22// Hide the Checkout Stripe gateway in the invoice view for users in group 1
23add_hook('ClientAreaPageViewInvoice', 1, function($vars) {
24 $gatewaydropdown = $vars['gatewaydropdown'];
25
26 $client = Capsule::table('tblclients')->where('id', $_SESSION["uid"])->first();
27 $groupid = $client->groupid;
28
29 // If the client is in group 1, remove Checkout Stripe gateway
30 if ($groupid === 1) {
31 $cashapp = '<option value="stripeGateway">Credit Card</option>';
32 $gatewaydropdown = str_replace($cashapp, '', $gatewaydropdown);
33 }
34
35 return array("gatewaydropdown" => $gatewaydropdown);
36});
37
38// Hide the Checkout Stripe gateway in the payment methods on profile page for users in group 1
39add_hook('ClientAreaPageProfile', 1, function($vars) {
40 $paymentmethods = $vars['paymentmethods'];
41
42 $client = Capsule::table('tblclients')->where('id', $_SESSION["uid"])->first();
43 $groupid = $client->groupid;
44
45 // If the client is in group 1, remove Checkout Stripe gateway
46 if ($groupid === 1) {
47 unset($paymentmethods['stripeGateway']);
48 }
49
50 return array("paymentmethods" => $paymentmethods);
51});
52?>