Jump to content

Auto Credit Card deduction still default in WHMCS 7.8?


jacksony

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

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. 

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