Jump to content

Infinite charging


Recommended Posts

We've just a customer get charged 10 times for a product they'd already paid for! We use WorldPay Futurepay.

 

The order was mistakenly identified as fraud by Varilogix, so I reset the hosting plan to "Pending" and the invoice from canceled to "Unpaid". The customer then duly paid and the hosting setup automatically as it should be.

 

BUT the invoice was not marked as paid, despite the transaction being recorded in the transaction list on the invoice itself! As a result the customer was then charged every 10 minutes (our cron frequency) until the they canceled the agreement.

 

There were no callback failures from WorldPay, so I think these must be something in WHMCS preventing previously canceled invoices being paid (even if they've been reset).

 

 

Just a heads up.

Link to comment
Share on other sites

I don't think Matt said a frequent cron was better.

 

What he suggested was setting up a script to run to make the futurepay amount take.

 

Following the previous discussions about this, I contacted Matt and hired him to create a script to do this. He did it within 24 hours, and after a couple of tweaks and changes, it works brilliantly.

Link to comment
Share on other sites

Yep. While not fully knowing what the technical steps are, in testing, (and now with customers who have placed orders) this is my understanding of how it works:

 

If the existing customer has a futurepay agreement in place with us already and during the order process for the new product they select futurepay, the moment they complete their checkout, the checkoutscript.php is triggered and this runs the futurepay script (normally run by the cron every 24 hours). The invoice amount is then debited from their card and the invoice marked paid.

 

So order grace days are avoided altogether the order is never 'technically' in 'pending' or 'unpaid' status.

 

Hope this helps.

 

 

Si

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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