sohouk Posted May 4, 2010 Share Posted May 4, 2010 I’m having trouble setting up Worldpay to let WHMCS know that a transaction has been successful. As a client, I can put an item into my cart, checkout to WorldPay and pay the account. I get a ‘success’ screen and I also get an email as a client that the bill has been paid But the payment is not reflected in WHMCS. It is simply shown as pending. The WHMCS help says that all you need for Worldpay is the installation number and that the call back address. That call back address should be <WPDISPLAY ITEM=MC_callback>. The docs are confusing because the default value in the Worldpay setup is http:// <WPDISPLAY ITEM=MC_callback> so I took out the http bit and simply entered <WPDISPLAY ITEM=MC_callback> That didn’t work, so I added the http:// bit back and that still didn’t work. Is there anything else I have to do (the docs don’t mention anything further) 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 4, 2010 WHMCS Support Manager Share Posted May 4, 2010 Have you ticked the various "Response" checkboxes? 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 4, 2010 Author Share Posted May 4, 2010 Yes. The selections I ticked were Payment Response Enable Recurring Payment Enable the Shopper Response The fourth, I left un-checked. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 5, 2010 WHMCS Support Manager Share Posted May 5, 2010 That all sounds correct. Is there any record of the callbacks in Billing > Gateway Log? 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 5, 2010 Author Share Posted May 5, 2010 Just checked the Billing > Gateway Log and its empty. There is no record in the Billing > Transactions list either : ( I have also looked at the clients account and there isn't anything recorded there. And yet, Worldpay have processed the payment and its showing in our account as completed. Is there anything else to set in WHMCS or Worldpay not descibed in the instructions at http://wiki.whmcs.com/WorldPay ? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted May 5, 2010 Share Posted May 5, 2010 The most common reason is that you are blocking their callback by your f/wall settings 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 6, 2010 Author Share Posted May 6, 2010 I can rule out the firewall block because we already use Worldpay (have done for years) and it continues to work OK with AWBS which is what we currently run. Is there any way to see what is in the variable that the call back address at Worldpay is using, then at least I could check that was OK? Trevor 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 6, 2010 Share Posted May 6, 2010 could it be that something in your htaccess is blocking the link to the callback file? 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 6, 2010 Author Share Posted May 6, 2010 could it be that something in your htaccess is blocking the link to the callback file? That may be a good point. I don’t know what the call-back address is for Worldpay to respond to so I can’t check the .htaccess The docs do not mention what the return url could be and I’m not sure how to find out. One side of me thinks it can’t be .htaccess or it would be mentioned in the documentation wouldn’t it? Trevor 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 6, 2010 Share Posted May 6, 2010 If you are usingh the worldpay module then the return url should be [/url][url="http://domain.com/modules/gateways/callback/worldpay.php"]http://domain.com/modules/whmcs/gateways/callback/worldpay.php[/url] doing that should give you a blank page but should also add an unsucessfull transaction in your gateway log. If you are using any of the other 3 worldpay modules then they should be very similar [/url][url="http://domain.com/modules/gateways/callback/worldpayfuturepay.php"]http://domain.com/modules/whmcs/gateways/callback/worldpayfuturepay.php[/url] [url="http://domain.com/modules/gateways/callback/worldpayfuturepaycharges.php"]http://domain.com/modules/whmcs/gateways/callback/worldpayfuturepaycharges.php[/url] [url="http://domain.com/modules/gateways/callback/worldpayinvisiblexml.php"]http://domain.com/modules/whmcs/gateways/callback/worldpayinvisiblexml.php[/url] So if you are blocking access to the modules directory in your htaccess then the callback will never work. Just something to check!! 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 6, 2010 Author Share Posted May 6, 2010 I have checked the modules/whmcs/gateways/callback/worldpayfuturepay.php folder and it all those above it have no .htaccess file. I might try hard-coding the call back URL and see what happens. Trevor 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 6, 2010 Share Posted May 6, 2010 The htaccess could be in your doc root directory 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 6, 2010 Author Share Posted May 6, 2010 I just checked again and there are no .htaccess files in any folders except the home folder (public_html), and that is empty. Trevor 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 6, 2010 Share Posted May 6, 2010 was worth a shot 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 7, 2010 Author Share Posted May 7, 2010 Worldpay continues to refuse to react to WHMCS : ( The facts are that our Worldpay installation has worked flawlessly for years from within our AWBS installation. That installation is on the same server as WHMCS so its’ not an IP problem (I did double check Worldpay and the IP is white listed there). When I make a transaction from WHMCS, all the correct steps appear to be followed and I am taken to Worldpay, the details processed and both the client and us get an email confirming the transaction as successful. But, nothing happens at WHMCS – no transaction gets entered, there is no record in the logs: Billing > Gateway Log <empty> Billing > Transactions list <empty> The only Worldpay information that is needed in WHMCS: Visible Name Installation ID The only check I made at Worldpay is to ensure the callback string is <WPDISPLAY ITEM=MC_callback> as the docs mention. I am wondering if that is really all that is required or whether I have missed step. I am guessing others use Worldpay successfully so what could possibly be wrong? Trevor 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 7, 2010 Author Share Posted May 7, 2010 Forgot to attach WP success screen showing transaction complete. 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 7, 2010 Author Share Posted May 7, 2010 I was curious as to whether WHMCS is sending adequate information to Worldpay so I checked the Payment Page the client sees just before the submit button is hit (whmcs/viewinvoice.php) All the hidden field codes seem to be present and correct. In particular the call back variable MC_callback value which does point to the correct place. <form action="https://secure.wp3.rbsworldpay.com/wcc/purchase" method="post"> <input type="hidden" name="instId" value="7513"> <input type="hidden" name="cartId" value="144045027"> <input type="hidden" name="desc" value="Soho UK - Invoice #144045027"> <input type="hidden" name="amount" value="2.00"> <input type="hidden" name="currency" value="GBP"> <input type="hidden" name="name" value="Trevor Langford"> <input type="hidden" name="email" value="sohouk@soho.com"> <input type="hidden" name="address" value="49 Victoria St London "> <input type="hidden" name="postcode" value="SW1W 1JW"> <input type="hidden" name="country" value="GB"> <input type="hidden" name="tel" value=""> <input type="hidden" name="testMode" value="100"> <INPUT TYPE="hidden" NAME="MC_callback" VALUE="http://www.soho-uk.com/whmcs/modules/gateways/callback/worldpay.php"> <input type="submit" value="Pay Now"> </form> So now I really am stumped Trevor 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted May 14, 2010 Author Share Posted May 14, 2010 It now appears to be working According to Matt, Worldpay may (may not) have changed something. He supplied a bunch of new files which replaced the existing ones in the Worldpay module. The completion of the purchase process now works, albeit that the customer has to click a button to finish the transaction and return to WHMCS with their order complete. Matt indicated that an update will be incorporated in the next release of WHMCS. 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.