Jump to content

Worldpay not letting WHMCS know it has received funds


sohouk

Recommended Posts

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)

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :cry:

 

Trevor

Link to comment
Share on other sites

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.

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