jacksony Posted September 5, 2019 Share Posted September 5, 2019 Hi, Due to our customers' preference to have auto CC deduction disabled by default (after adding their CC), we have to write a hook to disable that by default. May we know with WHMCS 7.8, is the behavior still the same? Eg. their cc will be auto deducted if they have added their CC in the system? 0 Quote Link to comment Share on other sites More sharing options...
jacksony Posted September 10, 2019 Author Share Posted September 10, 2019 Any feedback? 0 Quote Link to comment Share on other sites More sharing options...
UKBSS.COM Posted September 10, 2019 Share Posted September 10, 2019 @jacksony Can you please clarify what you are trying to do exactly and we will see if we can help you out. 0 Quote Link to comment Share on other sites More sharing options...
jacksony Posted September 10, 2019 Author Share Posted September 10, 2019 Usually when customer adds a credit card in WHMCS, WHMCS will auto deduct their invoices automatically using their stored credit card. So we have to manually set all customers' accounts to disable auto deduction by default when they sign up. Is this still the same case currently? As we don't want customer to be auto deducted by default. 0 Quote Link to comment Share on other sites More sharing options...
UKBSS.COM Posted September 10, 2019 Share Posted September 10, 2019 As far as im aware this is still the same if they add the card via the invoice. If its in the client area where they add them then it wont auto deduct the invoice until its due date. There is an option to edit the cron as so */5 * * * * php -q /path/to/cron.php skip --ProcessCreditCardPayments Replace /path/to/ with the actual path to your cron.php file. This will stop you having to manually set each client to not auto process card. It is system wide though so you would have to manually charge the cards but that seems like what you are after? 0 Quote Link to comment Share on other sites More sharing options...
jacksony Posted September 10, 2019 Author Share Posted September 10, 2019 Hi, I see. But this doesn't work because some customers still prefer auto cc enabled. Meaning customers still do not have the option at front end to enable or disable auto CC after they added CC right? 0 Quote Link to comment Share on other sites More sharing options...
UKBSS.COM Posted September 10, 2019 Share Posted September 10, 2019 No im afraid not. In my personal experience I would alway have it auto charge on the due date anyway. Is there any particular reason they dont want it to auto charge on the due date? Another option for those that don't want t to auto charge is to provide you teh card details and you add them directly into the gateway so the whmcs part is skipped. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted September 10, 2019 Share Posted September 10, 2019 You can get the option within the client area with a custom addon and form on the manage credit card page that submits to the addon to toggle the setting and the addon then redirects back to the manage card page. You could also skip the addon and use a hook that watches for $_POST with specific variables and use that same form to post to clientarea.php?action=creditcard . That method may conflict with WHMCS handling of the form submission and would require testing. 0 Quote Link to comment Share on other sites More sharing options...
jacksony Posted September 11, 2019 Author Share Posted September 11, 2019 Yes sadly still waiting for this feature. Customer should have control to set auto deduct themselves. Most do not prefer to have this enabled as they want to choose their own card and do not want to auto-deduct for services which they forgot to cancel. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.