Jump to content

WHMCS - 2Checkout - Problem with Recurring Payments

Recommended Posts

We are using 2Checkout payment gateway with WHMCS. Most of our clients use automatic recurring payment option but some use one-off payments.
The problem comes with Automatic Recurring payment option. 

Suppose a client ordered a service on 10th Jan and chose Automatic Recurring payment subscription for a monthly payment plan. 
Next month his invoice is generated 7 days before the due date on 3rd Feb.
2Checkout's Automatic Recurring payment subscription will run on 10th Feb.

As the client receives invoice he sometimes logs on to the client area and pays the invoice manually e.g. on 4th Feb.
And 2Checkout's Automatic Recurring paymeent subscription run on 10th Feb creates double charge.

We need to stop this. 

One of the solutions is to generate the invoice on the due date but this will not work for us. 
As the clients who pay manually need invoice generated at least a week before the due date.

Another solution is to mark the services which already have any recurring payment subscription and show a warning on the invoice payment page.
This will alert the client not to pay the invoice manually.

WHMCS already marks 2Checkout Subscription in subscriptionid field of tblhosting table. However this is not reliable.
The reason is it doesn't mark at the time the subscription is created but it marks it next time when the subscription is automatically run.
Therefore this will not serve the purpose.


Any idea how to solve this ?


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