Rikki,
What you have just proved by adding my little snippet of code is that WorldPay are returning the correct value for 'Test Mode' for a live site ie '0'. So the problem is NOT at the WorldPay end.
I suspect you must have made an unintentional change to the code in
includes/templates/template_default/templates/tpl_wpcallback_default.php
line 208 should look exactly like this:
Code:
if ($testMode !== 0) {echo WP_TEST_HEADING . "<br /><br />";}
The syntax is as follows:
If the condition defined within the normal brackets is met then do whatever action is defined within the curly brackets.
The condition here is ($testMade !== 0) which basically means $testMode is NOT equal to '0'.
The action if this condition is met is to display the WP_TEST_HEADING text as defined in the language file.
You have just proved that $testMode does equal '0'. This is the only value that should result in the WP_TEST_HEADING text NOT being displayed so there must be something wrong with the syntax of this line of code. Check it very carefully. It should be exactly as shown above.
Regards,
Alan
Bookmarks