Jump to content

Disable Automatic CC Processing by default


redunculous

Recommended Posts

  • 4 months later...

Needed this same thing and came across this thread. Got it working thanks to the information from SiteOx. Figured I'd add it here for posterity. Create the file /includes/hooks/disableautocc.php and add this code replacing the admin username with your own:

<?php

function hook_disable_auto_cc($vars) {

$command = "updateclient";
$adminuser = "admin";
$values["clientid"] = $vars['userid'];
$values["disableautocc"] = true;

$results = localAPI($command,$values,$adminuser);


}

add_hook("ClientAdd",1,"hook_disable_auto_cc");

?>

Link to comment
Share on other sites

Hello towens,

 

Thank you for sharing this workaround. We always appreciate it when users share their solutions but I am obligated to remind everyone that these are not tested nor supported by WHMCS. Please test user submitted solutions before applying them in your production install of WHMCS.

 

--Thanks

Link to comment
Share on other sites

  • 6 years later...

just wanted to say thank you for the above

yes first add the php hook file

and then simply open phpmyadmin and run this to disable it on all "existing" clients to disable it for them also, hope it helps someone else

Update tblclients set disableautocc = '1';

 

Link to comment
Share on other sites

  • 1 year later...
On 3/5/2014 at 8:37 PM, brian! said:

if you mean when adding a new client, you want the "Disable CC Processing" checkbox to be ticked by default, then I don't think you can...

 

perhaps another way to handle this would be to tweak your cron settings and disable auto cc processing there...?

 

http://docs.whmcs.com/Crons#Skipping_Actions

@brian! Could you please check this screenshot? https://prnt.sc/cQoEKl9A4n7t

I want to disable auto Credit Card processing, so it it correct?

Thanks!

Edited by mdraselkhan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated