Jump to content
jacksony

Auto Credit Card deduction still default in WHMCS 7.8?

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?

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.  

Share this post


Link to post
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. 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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